Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Rename file using date
Name: selector007 Date: February 11, 2004 at 05:33:23 Pacific OS: 2000 CPU/Ram: penitum
Comment:
I would like to rename the below using the date format:
Name: chadbh74 Date: February 11, 2004 at 09:07:43 Pacific
Reply:
Hi there...
While it is possible to rename a file to a file that has the date in it, the specific format you use is invalid as a filename. there can be no slashes "/" in a filename, DOS uses these to seperate directories when specifying pathnames. Also, in TRUE DOS (such as 6.22) you are limited to what is known as the "8.3" format. That being 8 letters then the "dot" then 3 letters for extension. When doing a "DOS Shell" under Windows '95 and above, this limitation is removed, but you still cannot use the slashes. Perhaps try "-" instead (11-02-2004)
0
Response Number 2
Name: FishMonger Date: February 15, 2004 at 20:47:33 Pacific
Reply:
Here's how you'd rename the file using the current system date.
Summary: Easiest approach: Requires the ability to use the DOS extensions (NT4 SP3 or SP4 onwards I think???) rem Rename File @echo off rem Enable Extensions verify other 2>nul setlocal enableextensions if er...
Summary: how to copy the files by date from one folder to another...Eg: i want to copy the files dated in 01/01/2003 from OLD_FILES to COPIED-FILES. and how to make a batch file so that it gets executed daily ...
Summary: Hi All i use the following code in a bat file to scan with irfanview. The file test.jpg is generated and should be renamed with the current time. It works fine with date but when using time there will...