I would like to create a like how we type in CMD with options behind the command. For example cmd shutdown /i Code:
ECHO 1. Nmap
ECHO 2. Nesus
ECHO 3. Nexpose
ECHO ................................
CHOICE /C 123 /M "Enter your choice:"
IF ERRORLEVEL 3 GOTO n
IF ERRORLEVEL 2 GOTO ns
IF ERRORLEVEL 1 GOTO nx
:n
CALL n.bat
GOTO :eof
:ns
CALL ns.bat
GOTO :eof
:nx
CALL nx.bat
GOTO :eof
I would like to transform this into command with options For example: script /n /ns
This will execute the code called script with /n (Nmap) and /ns (Nessus) So that user next time will not need to go through the menu.
and method?