Re: runas - ERROR?

Valik <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Stefan Lubitz wrote:
> 
> 
> That's not correct. Also if the WorkingDir is valid, you will receive
> the error under WinXP (working on W2K) if you don't use the Path parameter.
> I agree with Carsten. This should be changed or noted in the Help file.
> It took me two days to figure out where the problem was related. And
> still I don't understand where the error comes from.
> 
> Regards,
> Stefan
> 

You're not running the program as UserA, you're running it as UserB. 
That means UserB better have access to the working directory specified. 
  If no working directory is specified, then the script's working 
directory is used.  In your case, I would be willing to bet that the 
working directory is your Desktop or some other folder inside your 
profile.  Typically, security is set up so that you can not access the 
profile directories of another user account.  Ergo, the working 
directory is invalid for UserB because they do not have access rights to 
UserA's profile.  The same holds trues for network shares and mapped 
drives that UserB can't see, even though UserA can see them just fine. 
UserA's rights are irrelevant, UserB is what matters.
-- 
- Valik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.