AW: runas - ERROR?

"Lüth, Carsten" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Hi Stefan,

you are right!
I some constellations it don't works.
With
RunWait("regedit.exe","path")
it works perfect!

I've copied the script from the Help-File: AutoIt3.chm
Can somebody change/endorse the example-script in the section "RunAsSet"?


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] 



-----Ursprüngliche Nachricht-----
Von: Stefan Lubitz [mailto:[email protected]] 
Gesendet: Donnerstag, 9. November 2006 08:58
An: [email protected]
Betreff: Re: [AutoIt] runas - ERROR?


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



 
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.