Hi,
I am new in MS DOS scripting.
Trying to code a script to check and compare time stamp of a list of files. Below is the scripts, but is not working as expected. Need experts' help please.
Thanks a lot.
Line 6 works fine,
Line 7 doesn't work,
Line 8 print fName=null
Line 9 doesn't work,
Line 10 print ftime=null
1 REM===========================
2 SET DIRECTORY=C:\test
3 SET fileList=text1.txt,text2.txt,text3.txt
4 CD %directory%
5 for %%f in (%fileList%) DO (
6 echo %%f found
7 set fName=%%f
8 echo fName=%fName%
9 for %%a in ( %%f ) do set ftime=%%~ta
10 echo ftime=%ftime%
... )