I need to use variable from batch file within a text file. Not sure what's the best and easiest way to achieve that.
Batch file code:
set back=%cd%
for /d %%i in (C:\input\*) do (
cd "%%i"
set x=%%~nxi
CALL E:\FileMoving_run.bat --context=Default --context_param prop_file_move=C:\file_move.txt
cd %back%
pause
)
cd %back%
Content of text file -C:\file_move.txt specified below. The way I am trying to pass here is definitely not working.
path=C:\Metadata_input\%x%\
elec_path=C:\OHD\%x%\