I'm very real newbee to batch files, does anyone know how to get this to work?
I'm tring to set my PC date by reading a .txt file and setting the PC date. The file currentdate.txt has one line that is captured from the system date variable.
I think it errors when I try to set it because the file has the day of the week (Fri) as part of it.
File Currentdate.txt = Fri 01/30/2009
my batch =
Set /P sd=<C:\currentdate.txt
echo %cd% |date