I am having a batch file where it has set variable. I would like replace each variable with value.
For ex: My batch file looks like follows
Set Sourcefolder=..\..\Release
Set Variable2=/y /R
Set DestFolder=..\..\Output
XCopy %SourceFolder%\Comp1 %DestFolder%\Comp1 %Variable2%
...
...
..
Likewise it has many lines. I would like to replace the variables with value. For example
instead of %SourceFolder% it should replace with value ( ….\release)
How to achieve this ? batch file or Powershell script are preferrale
This is how I would do it: