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
This works:
SET /P VALUE_FROM_FILE= < AppServer.pid taskkill /pid %VALUE_FROM_FILE% /f
The /P parameter used with SET allows you to set the value of a parameter using input from the user (or in this case, input from a file)