i was wondering if you could do somthing like this:
echo set quit= >> %saveas%.bat
echo set /p quit= >> %saveas%.bat
echo if %quit%==Q goto quit >> %saveas%.bat
echo if %quit%==E goto exit >> %saveas%.bat
echo :quit >> %saveas%.bat
echo exit >> %saveas%.bat
echo :exit >> %saveas%.bat
echo Call "Better word processor.bat" >>
%saveas%.bat
so if anyone could help me that be great
yeah, but you need to double up all the % on the left side of any >> in the script, and you need to define value of %saveas%
set saveas=xxx.bat
...
...
echo if %%quit%%==Q goto quit >> %saveas%.bat
echo if %%quit%%==E goto exit >> %saveas%.bat
thx so much ive been over and over this for days
Some characters need (can use) the caret sign to prevent them from being interpreted too early, example: D:\Temp>echo ^%PATH^%
%PATH%D:\Temp>
... where omitting the caret sign (^) would just parse %PATH% directly and show content straight away.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |