An office public computer, I installed XP and DOS dual systems, and made an automatic GHOST batch file. It's too convenient, so the system is often entered into DOS to randomly GHOST restore. I want to require entering a password before GHOST restore <to confuse some people>. The batch code is as follows:
@echo off
set a=
set/p a=password:
if /i "%a%"=="123" goto aa
exit
::The following part replaces the GHOST command with parameters
:aa
echo Hello
pause
The above statements execute well under WINDOWS. But under DOS, the password input part is not executed. Please help, why? Do I need to load something first to execute the password input part under DOS?
Request a code that requires a password to execute GHOST. Thanks in advance!
@echo off
set a=
set/p a=password:
if /i "%a%"=="123" goto aa
exit
::The following part replaces the GHOST command with parameters
:aa
echo Hello
pause
The above statements execute well under WINDOWS. But under DOS, the password input part is not executed. Please help, why? Do I need to load something first to execute the password input part under DOS?
Request a code that requires a password to execute GHOST. Thanks in advance!
