I\'m trying to read a value from a file and use it in a subsequent command.
I have a file called AppServer.pid which contains the process id of my app serve
AppServer.pid
for /f %%G in (appid.txt) do (SET PID=%%G) echo %PID% taskkill etc here...
This might help !