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 the file name to %Date%-1
Name: charles_cp Date: October 22, 2003 at 04:10:41 Pacific OS: Windows 2000 CPU/Ram: 800
Comment:
My Windows 2000 server will receive a I001.txt everyday. I want to rename the file name daily. Thus, I had write a batch file like this: for /f "tokens=1-3 delims=/ " %%a in ('DATE /T') do set Date=%%a%%b%%c copy I001.txt I001%date%.txt /b/y
But the text file will receive at 11:59pm. When I run the batch file. The file name is not the receive day. How to set the %data% can less 1 day?
Summary: The following batch script will rename all the files from the folder %TARGET% to 8.3 format: @echo off :: Set directory where to rename files below set TARGET=C:\AnyFolder :: To include hidden and sys...
Summary: Thanks for the follow up. I should probably clarify what I need. Yes, I need the file name to be a date.zip, but not todays date. I need the file name to be what our database is current up to. So,...
Summary: hi all, my problem: I want to change a file name in todays date like 291003vir_log.txt (NT Dos) I tried this: date /t >>date.txt FOR /f "tokens=2 skip=2 delims= " %%a in ('find "." date.txt') do renam...