lblauen
Technical User
- Aug 13, 2002
- 69
I'm trying to automate a backup so I wrote a batch file for test. This is for windowsxp.
I will post it here.
set d=%DATE%
copy list.txt %d%.txt
This fails because the date command has / in it and copy dosen't like the /
copy list.txt fri 09/10/2004.txt Fails
I even tryied copy list.txt "fri 09/10/2004".txt still fails but
copy list.txt fri 09102004.txt works fine.
How can I get the date to be 09102004??? Any ideas????
I will post it here.
set d=%DATE%
copy list.txt %d%.txt
This fails because the date command has / in it and copy dosen't like the /
copy list.txt fri 09/10/2004.txt Fails
I even tryied copy list.txt "fri 09/10/2004".txt still fails but
copy list.txt fri 09102004.txt works fine.
How can I get the date to be 09102004??? Any ideas????