Windows Batch Script to Replace Environment Variables in a File
- by skb
Hi. I want to write a batch file that will take the contents of a file, and replace any environment variable references inside the file with the actual environment variable values. Is this possible? Basically, if a file had this:
%PROGRAM FILES%\Microsoft SQL Server\
then I would want the file contents to become:
C:\Program Files\Microsoft…