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 change file modified date
Name: bobbarker Date: October 17, 2008 at 15:33:39 Pacific OS: windows (dos) CPU/Ram: pent 4 Product: dell inspiron
Comment:
can someone help me with a batch file to change the date modified of a text file?
Name: Mechanix2Go Date: October 18, 2008 at 00:48:32 Pacific
Reply:
A helper will first need to know the exact OS.
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 2
Name: klint Date: October 20, 2008 at 03:08:20 Pacific
Reply:
Also, do you mean change it to the current date and time (like the Unix 'touch' utility), or to any specified date and time (so that you can make a new file appear to be an old one)?
0
Response Number 3
Name: bobbarker Date: October 21, 2008 at 15:19:23 Pacific
Reply:
im running windows xp.
Basically i have a program that im testing, that checks the file modified date of an ini text file before it can run. Presently i have to open the file in notepad each day, save it, then the frontend will load since the modified date is set to today by the saving of the file.
0
Response Number 4
Name: Mechanix2Go Date: October 22, 2008 at 01:20:25 Pacific
Reply:
copy my.ini,,+
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 5
Name: bobbarker Date: October 22, 2008 at 16:25:38 Pacific
Reply:
holy smokes it worked! heheh, thanks much.
0
Response Number 6
Name: bobbarker Date: October 22, 2008 at 17:25:10 Pacific
Reply:
i put this in a batch:
copy mwsku.txt,,+ m2o.exe
but how do i call m2o.exe and have the batch finish so the dos box closes? presently it hangs out until i close m2o and then it finishes and closes.
0
Response Number 7
Name: Mechanix2Go Date: October 22, 2008 at 17:32:51 Pacific
Summary: When Robocopy copies that have been copied before it does not change the modified date. Does anyone know the switch that would change the modified date. ...
Summary: Relates to an ealier post with title: Batch File deleting files by date? HAD TO CHANGE FOLLOWING TO GET WORKING 1. In Line: for /f "tokens=2" %%i in ('date /t') do set thedate=%%i Change tokens=2 to t...
Summary: Hi All I have a file that is created each day and always dumps as "Output", renamed as follows: @echo off for /f "tokens=1-4 delims=/ " %%d in ("%date%") do rename "C:\output.txt" output_%%d_%%e_%%f.t...