tekinfarmland
Technical User
I am on a windows 2003 server, trying to write a dos batch script.
I have a file with a date in it "date.txt"
content looks like "Thu Mar 29 12:27:36 2012"
I have another file copy.cmd that has 5 input parms corresponding to the 5 date parts above %1 is for "day", %2 is for "month", %3 is for "date", %4 is for "time", and %5 is for "year"
How can I feed the content of the date.txt file in 5 pieces as parameters to the copy.cmd? "copy.cmd < date.txt" does not work.
Is there a windows resource kit tool, another tool, or a way to do that command to do what I want without writing a control program to parse the date and call copy.cmd with the date pieces as parms?
I have a file with a date in it "date.txt"
content looks like "Thu Mar 29 12:27:36 2012"
I have another file copy.cmd that has 5 input parms corresponding to the 5 date parts above %1 is for "day", %2 is for "month", %3 is for "date", %4 is for "time", and %5 is for "year"
How can I feed the content of the date.txt file in 5 pieces as parameters to the copy.cmd? "copy.cmd < date.txt" does not work.
Is there a windows resource kit tool, another tool, or a way to do that command to do what I want without writing a control program to parse the date and call copy.cmd with the date pieces as parms?