I want to have a batch file create a series of batch files , each of which use a variable.
the final output should read:
for %%V in (*.vnc) do fixit %%V
I tried a batch file
for /L %%Q in (0,1,3) do echo for %%V in (*%%Q.vnc) do fixit %%V > %%Q_Fix.bat
and
for /L %%Q in (0,1,3) do echo for ^%%V in (*%%Q.vnc) do fixit ^%%V > %%Q_Fix.bat
but they didn't work, as the resulting batch files (ie: 3_fix.bat) came out:
for %V in (*3.vnc) do fixit %V
How can I 'protect' the double percentage sign in the echo output to the file?
(Preview did not work in my browser, so sorry if this didn't come out formatted correctly)