in reply to Runas using open
runas.exe does not read passwords from stdin. It uses a call, CredUICmdLinePromptForCredentials() from a system dll that accesses the console directly. I assume that this is designed as a security measure.
You may be able to use Win32::Console to obtain a handle to the current console and the WriteInput() method to drive the program. This is an untested idea.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Runas using open
by slloyd (Hermit) on Jun 12, 2005 at 04:46 UTC |