Microsoft
Software
Hardware
Network
Question : Renaming file to previous date
Using this command in a DOS shell, %date:~10,4%%date:~4,2%%da
te:~7,2%, will rename a file to the current date. Now I need to rename this file to the previous date. i.e. A zip file created on 20080915 needs to be named 20080914. Can I utlizile the above command with any type of switches to rename the file to the previous day rather than the current day? Of if there's an entirely different command to do this.
Answer : Renaming file to previous date
Hi, can try this.
Regards,
Rob.
1: 2: 3:
Set Today=%date:~10,4%%date:~4,2%%date:~7,2% Set /a Yesterday=%Today%-1 Echo %Yesterday%
Open in New Window
Select All
Random Solutions
Terminal Server 2003 not issue permenant licenses to clients
MYSQL is limiting the number of table rows to 32,767
Missing Menu bar in MS Word 2000
I can no longer access the SBS websites such as companyweb, owa, etc,
How do I change mysql owner from root to something else?
"NOT LIKE" condition in Crystal Reports
SQL Agent running Job - SSIS package - specify with windows user account to use
Event 494 on Exchange 2003, server 2003, clustered.
Microsoft Sharepoint Services 2003 FR, Unable to use Modified field in formula ?
Tally fails to get license from server