logo       

Runas problem (kind of....): msg#00234

windows.autoit.user

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

Okay. I am trying to get an application to run under Administrator, but
for some reason it can't seem to find the directory that the software is
installed to, even if I have it in the path on the machine. It seems to be
looking for the associated files for the program in \winnt\system32 only,
and I get errors when it can't find them.

The script I'm using is:

HideAutoItWin, on
SetCapslockState, off
Run, C:\\WINNT\\System32\\runas.exe /user:%computername%\\Administrator
"C:\\YARDI\\PMWPROG\\MMW.EXE",C:\\YARDI\\PMWPROG,,hide
Send, <password>{ENTER}
Exit

Am I correct in thinking that putting the path for the program as the next
thing in the command line /should/ give it the appropriate working
directory? If that's the case, it doesn't seem to. Any suggestions/ ideas?

Thanks!

KMH


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/EGnolB/TM
---------------------------------------------------------------------~->

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



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise