Modify

#369 closed Bug (Duplicate)

RunAsWait and RunAs

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

When launching a program using Runaswait and giving a flag value but without giving a working directory, the program won't launch. It works with Runwait.

This code does not work (@error=1)

Dim $Result
$Result = RunAsWait("user", @ComputerName, "userpwd", 1, "calc.exe","",@SW_SHOW)
IF @error <> 0 Then Msgbox(0,"Result",$Result & " " & @Error)

This code works

Dim $Result
$Result = RunAsWait("user", @ComputerName, "userpwd", 1, "calc.exe")
IF @error <> 0 Then Msgbox(0,"Result",$Result & " " & @Error)

Same problem with RunAs

So the working dir is not optional when you want to precise the flag and the only work around is to give a working directory which is accessible to the user you are using the security context

Attachments (0)

Change History (1)

comment:1 by Valik, on Jun 11, 2008 at 6:20:01 PM

Resolution: Duplicate
Status: newclosed

Sigh. Not a bug in AutoIt, we still fixed it anyway since user's are idiots. Couldn't you have bothered checking the tracker first? See #309 which doesn't mention the fix but the changelog for the next version will.

Closing as duplicate.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.