Hi,
Batch 1
What I am trying to do is store the current date in a temp file (that can be called in another batch later) and wind the current system time back 10 years.
Batch 2
Use the temp file created previously to restore the current date...
Delete temp file
any one know what I need to do, fairly new to bat files...
Using Vista so UAC is turned off for this.
Date format DD/MM/YYYY (Australian)
and time is not in 24 hours time
Have been researching but can't even figure out where to start
Save system date and wind clock back 10 years
Moderator: DosItHelp
-
- Expert
- Posts: 80
- Joined: 04 Feb 2009 10:03
To save the Current Date into a Temp File:
To set the date:
Replace the dd/mm/yyyy with the date desired
Replace the HH:MM:SS with the time desired
To return the system to the date saved:
-Rick
Code: Select all
Echo Date %Date% > \Temp\ResetDate.bat
To set the date:
Replace the dd/mm/yyyy with the date desired
Replace the HH:MM:SS with the time desired
Code: Select all
Date dd/mm/yyyy
Time HH:MM:SS
To return the system to the date saved:
Code: Select all
Call \Temp\ResetDate.bat
-Rick