Computing.Net > Forums > Disk Operating System > batch file to rename a file

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.

batch file to rename a file

Reply to Message Icon

Name: Mark Peiser
Date: December 6, 2001 at 12:49:12 Pacific
Comment:

I want to write a dos batch file to change the name a file from its original name to a timestamp (e.g., the key command would be:
ren file.txt mmddhhmm.txt so if the .bat file runs at 1:30 pm on Dec. 6 the file's new name would be 12061330.txt).



Sponsored Link
Ads by Google

Response Number 1
Name: Laurence
Date: December 8, 2001 at 09:24:14 Pacific
Reply:

Batfiles: The DOS batch file programming handbook & tutorial


You may search for a solution (there have been several in alt.msdow.batch).

http://groups.google.com/advanced_group_search



0

Response Number 2
Name: Laurence
Date: December 8, 2001 at 09:25:00 Pacific
Reply:

That's alt.msdos.batch


0

Response Number 3
Name: Mark Peiser
Date: December 10, 2001 at 14:47:48 Pacific
Reply:

thanks. this helps. your BatFiles website looks like a great resource.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Bad I /O 32-bit OS



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file to rename a file

DOS batch line to rename with date www.computing.net/answers/dos/dos-batch-line-to-rename-with-date/16193.html

batch script to check a dynamic ip www.computing.net/answers/dos/batch-script-to-check-a-dynamic-ip/15114.html

how to renam a file www.computing.net/answers/dos/how-to-renam-a-file/16988.html