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 SQL Server\
after the batch script ran. This is just one example, but I want ALL environment variables to be expanded. Thanks in advance for any help!