Manish
asked on
batch file for backup
I want batch file which will copy tar from one folder to another with date time attahed to it
ex..folder1/a.tar to folder2/a_date_time.tar
Thanks for suggestions.
ex..folder1/a.tar to folder2/a_date_time.tar
Thanks for suggestions.
ASKER
in my batch file when I am printing date it is coming like this
We- 1-/05/20_
why so?
We- 1-/05/20_
why so?
ASKER
I got this
This is because
set date=%date:~0,2%-%date:~3, 2%-%date:~ 6,6%
This is because
set date=%date:~0,2%-%date:~3,
Yeah, your date format is different then mine, let me see if I can find something, give me a couple!
ASKER
Format is
Wed 11/05/2008
Wed 11/05/2008
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Although I didnt testing this solution, I got help due to your solution/suggestion..
Thanks.
Thanks.
You set the folder to get .tar files, and backup folder. It will copy them like C:\Backup\11-04-08_11-37\f
so month-date-year_time (can't use : in files)
Open in new window