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
>
>
>
>
>
>
>
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.