Based upon my understanding of your question, you could try:
@For /D %%A In ("C:\input\*")Do @(
(Echo path=C:\Metadata_input\%%~nxA\
Echo elec_path=C:\OHD\%%~nxA\)>"C:\file_move.txt"
Call "E:\FileMoving_run.bat" --context=Default --context_param prop_file_move="C:\file_move.txt"
)
@Del "C:\file_move.txt"
6
solved how to use batch file variable within text file?