1.

Solve : Changing file date and time stamp?

Answer»

On a Windows 95 system I WANT to change a file's date and time stamp (within the DOS command window). It's been a VERY long time since I manipulated files using DOS. I think this can be done, but I can't remember how to do it. Can someone help?

Thanks.Quote

On a Windows 95 system I want to change a file's date and time stamp (within the DOS command window). It's been a VERY long time since I manipulated files using DOS. I think this can be done, but I can't remember how to do it. Can someone help?

Thanks.

It has been a while for me too.

I used to do it with some utility programs. I can't remember any one in particular now, but I did a quick Google and several that SEEM to be the thing are found.

Check out:
http://david.tribble.com/programs.html

Grab chtime.exe . If you execute it with no parameters on the command line, it returns a brief 'help'. Looks like what you want.

Give it a try and let us KNOW if that does the job for you.

I tested chtime.exe on my XP computer and it seems to work great. I hope to TEST it on the Win95 machine tomorrow. Bottom line, I need to change the date on a data file. The real test will be executing the application to see if changing the data file hoses up everything. Sorry to be so longwinded, but thank you very much for your help today.Quote
I tested chtime.exe on my XP computer and it seems to work great. I hope to test it on the Win95 machine tomorrow. Bottom line, I need to change the date on a data file. The real test will be executing the application to see if changing the data file hoses up everything.

I'm sure you'll remember to keep a good BACKUP copy of everything.

Quote
Sorry to be so longwinded, but thank you very much for your help today.

I hope it works for you.

from somewhere.

Code: [Select] @echo off & setlocal enableextensions
if [%1]==[] (
echo Usage: %~0 ["FileName"]
echo Wildcards allowed
goto :EOF
)
for %%f in ("%~1") do copy /b /v %%f +,,> nul
dir "%~1"
endlocal & goto :EOF


Discussion

No Comment Found