How to neutralize characters like \, , in batch or cmd?

May 28, 2019 at 13:17:26
Specs: Windows 10, AMD Athlon X4 845/8gb ddr3 ram
Someone know how to neutralize characters like \, <, or " in batch or cmd?
For example:
(
:top
echo Hello World
echo ping localhost -n 5 <null
echo goto top
) > something.bat

The line with < cannot be saved in final batch file. Is some way to neutralize it? like \ in c++?

message edited by Moumirrai


See More: How to neutralize characters like \, , in batch or cmd?

Report •

#1
May 29, 2019 at 00:43:56
(
:top
echo Hello World
echo ping localhost -n 5 ^<null
echo goto top
) > something.bat


escape them with a carrot, % can be escaped like so: %%

here is a list of how to escape every special character;
https://www.robvanderwoude.com/esca...

i5-6600K[delid]@4.9GHz/4.4GHz cache@1.504v | 2x4GB Crucial-DDR4-2400CL17@CL12-15-15-28 1T 3000MHz@1.45v | Sapphire Nitro+ SE RX 590 8GB@1450Mhz core@0.925v/2250MHz@1500MHz timings BiosModded


Report •

#2
May 29, 2019 at 07:09:52
Thanks :-) I must write more than 4 words to submit this so...

Report •

#3
May 29, 2019 at 07:56:48
Cheats ^_^     

i5-6600K[delid]@4.9GHz/4.4GHz cache@1.504v | 2x4GB Crucial-DDR4-2400CL17@CL12-15-15-28 1T 3000MHz@1.45v | Sapphire Nitro+ SE RX 590 8GB@1450Mhz core@0.925v/2250MHz@1500MHz timings BiosModded


Report •
Related Solutions


Ask Question