Computing.Net > Forums > Programming > batch change file modified date

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

Reply to Message Icon

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?

Thank you ahead.



Sponsored Link
Ads by Google

Response Number 1
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

Related Posts

See More



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
Reply:

copy mwsku.txt,,+
start m2o.exe


=====================================
If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

IVO and Judago - Still on... Speeding up a script i us...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch change file modified date

Robocopy modified date www.computing.net/answers/programming/robocopy-modified-date/8917.html

Batch File deleting files by date? www.computing.net/answers/programming/batch-file-deleting-files-by-date/15581.html

move file by date last modified in a batch www.computing.net/answers/programming/move-file-by-date-last-modified-in-a-batch/20173.html