Saved Bookmarks
| 1. |
Solve : Date problems in a btach file? |
|
Answer» I need to set up a new batch FILE that will move files from one directory to another. The problem that i am having is everyday my system CREATES the files in a date folder like 20080220. Is there a WAY to do a copy command that can look at the system date and change the format of that date into the format that my system is USING?Quote from: helpneeder on February 20, 2008, 03:41:22 PM Is there a way to do a copy command that can look at the system date and change the format of that date into the format that my system is using?Yes (assuming you are RUNNING a current version of Windows). It will depend on the date format your computer is using, but for U.S. English, my default date is in the format of: Thu 02/21/2008 in which case the following should work: Code: [Select]set DateFolder=%date:~-4%%date:~-10,2%%date:~-7,2%Thanks this is perfect!!!!!!!!!! |
|