Windows example:
Contents of script1.bat
@SETLOCAL
@SET _name=script1.bat
@CALL script2.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
@ECHO The user is %_user% and the password is %_password%
Contents of script2.bat
@ECHO script2.bat was called from %_name%
@SET /P _user=User name?
@SET /P _password=Password?
Example of running script1
>script1
script2.bat was called from script1.bat
User name?TheUser
Password?""
The user is TheUser and the password is ""
(Intentionally entered two quotes for password)
|