A. Most commands have a switch to confirm an action. For commands that require a response (e.g., a logon that asks you to enter a password), try the following command.
echo <password> | logon savillj
This command runs the command logon savillj. When the logon command asks for a password, the echo command echos the password with a return, thus entering your password.
You can also use the following code to echo a return.
echo.|cmd.exe
3 comments
Hide comments