Skip to main content
3 of 3
Copy edits.
Giacomo1968
  • 56.1k
  • 23
  • 167
  • 214

Using “runas /user” to run a batch file and seemingly nothing happens

If I run this command, after entering my password, all I see is a shortly blinking new cmd window, then nothing.

runas /user:<username> batch_file.bat

My batch file contains a pause command which should therefore require me to press Enter, and so I would at least expect the cmd window to persist until that point in my batch file.

Am I doing anything wrong? How can this be fixed?

Charles
  • 267
  • 5
  • 15