Re: runas - ERROR?
Stefan Lubitz <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Carsten,
I had this error also and solved it like this:
RunWait("regedit.exe","path")
It was realy necessary to include the path into the command. It was not
working like this:
RunWait("c:\windows\regedit.exe")
And the error only happens if I have used RunAsSet...... It was realy
strange.........
Regards,
Stefan
Lüth, Carsten schrieb:
> Hi Group!
>
> ; Set the RunAs parameters to use local adminstrator account
> RunAsSet("Administrator", @Computername, "secret")
> ; Run registry editor as admin
> RunWait("regedit.exe")
> ~~~~~~~~~~~~~~~~~~~~~
>
> Don't work!
> I get always back the folwing message:
> "unable to execute the external program. the directoryname is invalid"
>
> Any ideas?
> What's wrong?
>
>
>
> Mit freundlichem Gruà / With kind regards
>
> Fielmann AG
>
> Carsten Lüth
> IT - Desktop Services
> WeidestraÃe 118a
> 22083 Hamburg
> Telefon: +49 - (0) 40 - 2 70 76 - 199
> mailto:[email protected]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>