Re: runas - ERROR?
Stefan Lubitz <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
If you don't belive me. Try it.......... Stefan Lubitz schrieb: > > Ok, maybe my english is not that good. > But what could be missunderstood if I write, ->WORKING ON W2K<- > It has NOTHING to do with the access rights! We have discussed this some > weeks ago and it is really a differece between the function RunAsSet on > W2k and XP and it should be noticed n the AutoIt Helpfile. > > Regards, > Stefan > > Valik schrieb: > > > > 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 > > > > > >