I have been using the following command to get the file date, however the fileDate variable has been returning blank value ever since we moved to a different server (windows 2003)
FOR /f %%a in ('dir myfile.txt^|find /i " myfile.txt"') DO SET fileDate=%%a
Is there any other more reliable way to get the file date?