New
#11
Ok. You need to change the following lines in the above code:
Windows 7 compliant
Windows XP equivalentCode:set day=%date:~0,2% set mth=%DATE:~3,2% set yr=%DATE:~6,4%
The changes involve adding 4 to each of the pointers in order to jump over the unwanted part of the date in XP. There should be a way to incorporate both blocks of the above code into a batch file, and ensure that the correct section is executed dependant on the system the file is run on.Code:set day=%date:~4,2% set mth=%DATE:~7,2% set yr=%DATE:~10,4%
The code in the following link should be able to help. I'll see if I can extract the necessary part and incorporate it into a new version of the batch file.
http://stackoverflow.com/questions/1...-is-running-on