logo       

Re: Re: Runas problem (kind of....): msg#00250

windows.autoit.user

Subject: Re: Re: Runas problem (kind of....)

Larry,

No dice.  I /still/ get the same error.  Missing File, and it's looking in the WINNT\SYSTEM32 directory for it.

-Ken

try...

SetEnv,user,UserNoDomain
SetEnv,password,your_password_here
SetEnv,your_program,c:\\my program\\here.exe

SetTitleMatchMode,2
;next line word-wrapped
Run,%comspec% /c runas /user:%user% "%
your_program%",C:\\YARDI\\PMWPROG

WinWait,cmd.exe,,30
IfEqual,errorlevel,1,Goto,noGood
Sleep,1000
IfWinNotActive,cmd.exe,,WinActivate,cmd.exe
WinWaitActive,cmd.exe,,30
IfEqual,errorlevel,1,Goto,noGood

Send,%password%{ENTER}
Exit

noGood:
MsgBox,4096,Error,Script Error
Exit



> Run, C:\\WINNT\\SYSTEM32\\runas.exe /user:%computername%
\\Administrator
> "cmd.exe"
> Send, macman{ENTER}
> Send, CD C:\\YARDI\\PMWPROG{ENTER}
> Send, Y.EXE{ENTER}
> WinClose, cmd.exe
> EXIT
>
> It definitely seems to be a problem with just not finding the path
to the
> directory.
>
> -Ken
>
>
> >--- In AutoItList@xxxxxxxxxxxxxxx, "Private Name"
<larrydalooza@xxxx>
> >wrote:
> > >
> > >
> > >
> > > --- In AutoItList@xxxxxxxxxxxxxxx, "Kenneth M. Hargis"
> > > <stiletto@xxxx> wrote:
> > > >
> > > > Well, right now I'm actually testing it on my network at home,
> > > which is
> > > > /not/ on a domain model.  I'm just trying to get it to run as
> >local
> > > > Admin.  If I can even get that much working, it would be fine
for
> > > my purposes.
> > > >
> > > > -Ken
> > > >
> > > >
> > > > >Run,Runas.exe /user:username@xxxx "your exe.exe"
> > > > >
> > > > >are you using the domain name...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >Yahoo! Groups Sponsor
> > > >
> > >
> >
><<http://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=
1>ht
> > tp://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=1
> > >
>
>705144708:HM/A=1524963/R=0/SIG=12ongbbsq/*<http://hits.411web.com/cgi
->http://hits.411web.com/cgi-
> > > bin/autoredir?
> > > camp=556&lineid=3179269&prop=egroupweb&pos=HM>aa97d1.jpg
> > > > >
> > > > >aa9818.jpg
> > > > >
> > > > >To unsubscribe from this group, send an email to:
> > > > >AutoItList-unsubscribe@xxxxxxxxxxxxxxx
> > > > >
> > > > >
> > > > >
> > > > >Your use of Yahoo! Groups is subject to the
> > > >
><<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/

> >  >Yahoo! Terms of Service.
> >
> >
> >Yahoo! Groups Sponsor
> >
>
><http://rd.yahoo.com/M=247865.3425083.4707139.1261774/D=egroupweb/S=1
705144708:HM/A=1482387/R=0/SIG=16n3l7144/*http://ads.x10.com/?
bHlhaG9vaG0xLmRhd=1055465577%
3eM=247865.3425083.4707139.1261774/D=egroupweb/S=1705144708:HM/A=14823
87/R=1=1055465577%
3eM=247865.3425083.4707139.1261774/D=egroupweb/S=1705144708:HM/A=14823
87/R=2>cfb920.jpg
> >cfb95d.jpg
> >
> >To unsubscribe from this group, send an email to:
> >AutoItList-unsubscribe@xxxxxxxxxxxxxxx
> >
> >
> >
> >Your use of Yahoo! Groups is subject to the
> ><http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.


Yahoo! Groups Sponsor
da35bb.jpg 
da35e3.jpg

To unsubscribe from this group, send an email to:
AutoItList-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


To unsubscribe from this group, send an email to:
AutoItList-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise