Hello, I'm building a batch file that will generate a new .cmd file, I need to send it to this new file through echo:
for / l %% w in (1,1,20) do mode with: cols = 67 lines = %% w
more in the new file comes out as follows:
for /l % w in (1,1,20) do mode with: cols = 67 lines = % w
How to send through the echo command %%?
echo text %% [SOLVED]
Moderator: DosItHelp
-
- Posts: 14
- Joined: 26 Oct 2017 11:30
echo text %% [SOLVED]
Last edited by deniscalanca on 28 Aug 2018 11:49, edited 2 times in total.
Re: echo text %%
Double the percent symbols.
Code: Select all
echo for /l %%%%w in (1,1,20) do mode con:cols=67 lines=%%%%w>mybat.bat
-
- Posts: 14
- Joined: 26 Oct 2017 11:30
Re: echo text %%
Thank you very much.Squashman wrote: ↑28 Aug 2018 11:41Double the percent symbols.
Code: Select all
echo for /l %%%%w in (1,1,20) do mode con:cols=67 lines=%%%%w>mybat.bat