This script is to generate a special Job File for an Altiris deployment system. I need it to output the variables echoed as the variable name, not have the CMD prompt generate the actual varaible. Ex, %TIME% is saved as %TIME%" not, "Wed 04/06/2016 16:30:34.72"
Alternatively, being able to add or remove the REM comment on a specific line would be enough as well.
Also, is it possible to disable having to hit enter after entering Y or N?
:QOne
echo Do you want 3RVX? (Y/N)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="y" goto Yes
If /I "%INPUT%"=="n" goto No
:Yes
echo axSched.exe %COMPNAME% "3RVX" /t "%DATE% %TIME%" /y > %NAMEINPUT%.txt
goto QTwo
:No
echo "REM axSched.exe %COMPNAME% "3RVX" /t "%DATE% %TIME%" /y" > NAMEINPUT%.txt