|
Answer» hey all,
anyone know how I can echo the % character in dos?
I'm guessing I need the exit charactor???
any ideas???
cheersWhat exactly do you want to do?
By DOS I assume you mean Command Prompt?
Do you want to show the symbol '%' or what?yeah, I need to show the % sign.
I'm running the output of a unix tool to a txt file and one of the SWITCH's has a % in it. Which the command prompt isn't seening.
but I could GET the below to work I'd have the rest sorted;
Code: [Select]set var=% echo %var% pause
cheers for the quick REPLY!! Try this:
Code: [Select]@echo off set var=%% echo %var% pausearh, spot on.
cheers for that!!
No Problem.This has to be the FASTEST ever recorded reply and fix!!!!
Nice The simple answer is, to echo a % sign, write it twice in a batch file
echo %%
will show % on the screen.
|