Group, I have written before on this and now I am in pressing need to know where I am going wrong with this code.
Can anyone give me any ideas? The $Process contains path to perl script that has been formated to run as dos batch file. Thanks to all and sorry to be a pest I have the following code: $Process = "c:\\web\\cgi-bin\\PhoneListUpdate\\ole_add1 $id"; $Result = Win32::AdminMisc::LogonAsUser( $Domain, $User, $Password, LOGON32_LOGON_INTERACTIVE ); if( $Result ) { $LogonUser = Win32::AdminMisc::GetLogonName(); print "Successfully logged on as $LogonUser.<BR> Adding Name now!<BR>"; $Result = Win32::AdminMisc::CreateProcessAsUser($Process); if( $Result ){ print "Successful! The new processes PID is $Result.<BR>"; } else { print "Failed.\n\tError: ", Error(), "<BR>"; } } else { print "Failed to logon.\n\tError: ", Error(), "<BR>"; } The logon is successful but I get the following error after logon Failed. Error: Incorrect function. I am not sure what I am doing wrong. Please advise - thanks _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs