http://www.perlmonks.org?node_id=958784


in reply to Create Process As User

Have you tried this?

my $Result = Win32::AdminMisc::CreateProcessAsUser( "type c:\\autoexec.bat", "Flags", CREATE_NEW_CONSOLE, ...

(the name of the proccess is notepad.exe or notepad?)

Replies are listed 'Best First'.
Re^2: Create Process As User
by Anonymous Monk on Mar 12, 2012 at 07:34 UTC

    Its giving error as Incorrect function