how to send the " Enter Key " to batch file ?

  • Thread starter Thread starter AC @ Loneliness is tragical / _ \\
  • Start date Start date
A

AC @ Loneliness is tragical / _ \\

I am using command "runas" in a batch file, but it seems need to insert the
password manually
anyone know that how can i send a "enter key" to the batch file ?

sorry about my poor english and thanks in advanced
 
AC @ Loneliness is tragical / _ \ said:
I am using command "runas" in a batch file, but it seems need to insert the
password manually
anyone know that how can i send a "enter key" to the batch file ?

sorry about my poor english and thanks in advanced

You cannot pipe a password into the runas command. Use sanur.exe
instead, available from here: http://www.commandline.co.uk/sanur/
 
AC @ Loneliness is tragical / _ \ said:
I am using command "runas" in a batch file, but it seems need to insert the
password manually
anyone know that how can i send a "enter key" to the batch file ?

You don't. It is assumed at the end of every hard line-break.
 
Back
Top