T
TJT
I am trying to have a BAT file generate another BAT file. In that target
BAT file, I would like to write values like:
CALL MyBatFile.bat %1 %2 > MyTargetOutputFile
I tried executing the following command...
echo "CALL MyBatFile.bat %1 %2 > MyTargetOutputFile" >> NewBatFile.bat
Of course the %1 and %2 are getting substituted (I just want the literal
values %1 and %2 written). Furthermore the first > tries to pipe the output
to MyTargetOutputFile (I also wanted "> MyTargetOutputFile" to be written to
the NewBatFile.bat.
Is there any way to do what I want?
Thanks,
Tom
BAT file, I would like to write values like:
CALL MyBatFile.bat %1 %2 > MyTargetOutputFile
I tried executing the following command...
echo "CALL MyBatFile.bat %1 %2 > MyTargetOutputFile" >> NewBatFile.bat
Of course the %1 and %2 are getting substituted (I just want the literal
values %1 and %2 written). Furthermore the first > tries to pipe the output
to MyTargetOutputFile (I also wanted "> MyTargetOutputFile" to be written to
the NewBatFile.bat.
Is there any way to do what I want?
Thanks,
Tom