|I have a file located on a share folder. I have to execute that file from the local PC. The name of the file changes every day, hence I should find the name first and then execute that .exe file.|
Here is my Batch:
set FILE=FOR /F %%a IN ('dir /s/b') DO (
The last line does not execute the file. Instead of listing the whole path with the file at the end it shows the content of 'for' loop.
actually I see %a at the end instead of 'real' file
Why is that?