Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I reckon he meant not to hardcode the date. Jmjsin, this should do it:
for /F %%A in ("%DATE%") do ren test.txt test%%C%%A%%B.txt
That will exclude the separators. If you want them, use this instead:
for /F %%A in ("%DATE%") do ren test.txt test%%C-%%A-%%B.txt
Those lines are to be used from inside a batch file. In order to execute them from the command prompt, change the double % signs for single ones (%A instead of %%A and so on).
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br_________________________________________________________________

![]() |
How to put current WD in ...
|
format compresed hard dis...
|

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