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 s
What output (exactly) does dir myfile.txt give in the current directory? What happens if you set the delimiters?
FOR /f "tokens=1,2* delims= " %%a in ('dir myfile.txt^|find /i " myfile.txt"') DO SET fileDate=%%a
(note the space after delims=)
(to make life easier, you can do this from the command line by replacing %%a with %a)