L
L
lik1732020-12-02 14:47:23
cmd/bat
lik173, 2020-12-02 14:47:23

How to output % to a new file?

Here: saves only:
echo if %aaa%==1 goto test > out
if ==1 goto test

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-12-02
@lik173

In the command line, write
echo if %aaa%==1 goto test > out
In the batch file, write
echo if %%aaa%%==1 goto test > out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question