﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
369	RunAsWait and RunAs	anonymous		"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"	Bug	closed		AutoIt	3.2.12.0	None	Duplicate		
