[solved] Batch files and DOS
Posted: Mon Feb 06, 2006 5:36 am
Remeber the days, batch files and DOS, command line and the like?
I thought I would try here first instead of being forced to create a membership on a forum I'll likely use only once.
I have created a batch file that will copy all the files from one directory to another if they have been modified after a certian date.
Great so far.
The batch file then ftp's them up to the site into another folder waiting for processing.
The remote side is easy, cron job to process nightly.
Problem:
when using the /D:%date% swith in xcopy it returns a date of 14/02/2006
what xcopy is looking for is 02/12/02006
the difference being that the computer is set to use the british way of date and xcopy wants the north american form of date.
I can't find a way to change the date format to one the xcopy would like.
Any ideas, suggestions, solutions would be great.
Cheers
I thought I would try here first instead of being forced to create a membership on a forum I'll likely use only once.
I have created a batch file that will copy all the files from one directory to another if they have been modified after a certian date.
Great so far.
The batch file then ftp's them up to the site into another folder waiting for processing.
The remote side is easy, cron job to process nightly.
Problem:
when using the /D:%date% swith in xcopy it returns a date of 14/02/2006
what xcopy is looking for is 02/12/02006
the difference being that the computer is set to use the british way of date and xcopy wants the north american form of date.
I can't find a way to change the date format to one the xcopy would like.
Any ideas, suggestions, solutions would be great.
Cheers