Rod and Charles in the last thread produced this script which worked flawlessly with saving and restoring timestamps of files but not folders.
Is there something I can modify in the script to include folders too?
Thanks.
Code:
@echo off
for /r %%a in (*) do (
echo %%a
set _i=%@iniwrite[c:\fileinfo.ini,,%%a,%@filedate["%%a",c,s],%@filetime["%%a",c,s],%@filedate["%%a",w,s],%@filetime["%%a",w,s]]
)
Code:
@echo off
for /r %%a in (*) do (
set _s=%@iniread[c:\fileinfo.ini,,%%a]
iff "%_s" ne "" .and. exist "%%a" then
echo %%a
touch /q /dc%@word[",",0,%_s] /tc%@word[",",1,%_s] "%%a"
touch /q /dw%@word[",",2,%_s] /tw%@word[",",3,%_s] "%%a"
endiff
)
Is there something I can modify in the script to include folders too?
Thanks.