Jump to content

Batch Script meeda help kavali


jefferson1

Recommended Posts

Already existing script lo 

AWSDT = %yyyy%%mm%%dd%

ani declare chesi undi

 

dani base cheskonil... there was a log file with date extension : xyz.20210122

so script execute aninappudu....it was using the above value..

 

with new code log file name change aindi to xyz.2021-01-22

 

deni ela solve cheyali

Link to comment
Share on other sites

1 minute ago, jefferson1 said:

Already existing script lo 

AWSDT = %yyyy%%mm%%dd%

ani declare chesi undi

 

dani base cheskonil... there was a log file with date extension : xyz.20210122

so script execute aninappudu....it was using the above value..

 

with new code log file name change aindi to xyz.2021-01-22

 

deni ela solve cheyali

old  xyz.20210122

new xyz.2021-01-22

 

so u want to revert it back to old one.?   qn ardham kale

  • Upvote 1
Link to comment
Share on other sites

15 minutes ago, Spartan said:

old  xyz.20210122

new xyz.2021-01-22

 

so u want to revert it back to old one.?   qn ardham kale

old or existing log file is ending with 20210122

now it is changed and log files will end with date in format 2021-01-22.

how to handle new format.. idhi anukunta question.

tappaite kshaminchu.

Link to comment
Share on other sites

20 minutes ago, jefferson1 said:

Already existing script lo 

AWSDT = %yyyy%%mm%%dd%

ani declare chesi undi

 

dani base cheskonil... there was a log file with date extension : xyz.20210122

so script execute aninappudu....it was using the above value..

 

with new code log file name change aindi to xyz.2021-01-22

 

deni ela solve cheyali

@jefferson1 ida code script snippet paste karo and our technical team will do the rest

Link to comment
Share on other sites

2 minutes ago, Picheshwar said:

old or existing log file is ending with 20210122

now it is changed and log files will end with date in format 2021-01-22.

how to handle new format.. idhi anukunta question.

tappaite kshaminchu.

New code em change ayyindho TS clear ga cheppatledhu 

Link to comment
Share on other sites

3 minutes ago, Picheshwar said:

old or existing log file is ending with 20210122

now it is changed and log files will end with date in format 2021-01-22.

how to handle new format.. idhi anukunta question.

tappaite kshaminchu.

kotta code ni revert cheste saripoye...dantlo ela fix endi..

anduke question ardham kaale..what ths issue is.

Link to comment
Share on other sites

33 minutes ago, Spartan said:

kotta code ni revert cheste saripoye...dantlo ela fix endi..

anduke question ardham kaale..what ths issue is.

Aa file vere system nunchi vast untundi.

😂

Link to comment
Share on other sites

  • 2 weeks later...

Another doubt vayya

below code oka batch file  lo undi, batch file will start at 11:45 pm

if not exist E:\temp\Prod_arch\%AWSDT% mkdir E:\temp\Prod_arch\%AWSDT%
if not exist E:\temp\Prod_arch\%AWSDT% mkdir E:\temp\Prod_arch\%AWSDT%\XYZ
if not exist E:\temo\Prod_arch\%AWSDT%\%APPNAME% mkdir E:\temp\Prod_arch\%AWSDT%\XYZ\%APPNAME%

 

batch file 11:45 pm ki run ainnapudu... above lines work avvatam le

 

same batch file 11:45 am ki run avuthundi... and its working... enti reason

 

 

Link to comment
Share on other sites

21 minutes ago, jefferson1 said:

Another doubt vayya

below code oka batch file  lo undi, batch file will start at 11:45 pm

if not exist E:\temp\Prod_arch\%AWSDT% mkdir E:\temp\Prod_arch\%AWSDT%
if not exist E:\temp\Prod_arch\%AWSDT% mkdir E:\temp\Prod_arch\%AWSDT%\XYZ
if not exist E:\temo\Prod_arch\%AWSDT%\%APPNAME% mkdir E:\temp\Prod_arch\%AWSDT%\XYZ\%APPNAME%

 

batch file 11:45 pm ki run ainnapudu... above lines work avvatam le

 

same batch file 11:45 am ki run avuthundi... and its working... enti reason

 

 

Drink yesi padukundhemo 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...