• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

RunAs command under admin

Troll

Seriously Banned
Joined
Jun 14, 2006
Messages
12,787
Likes received
430
Thanks received
106
Location
Gods own Country
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""CrossLoop.exe"""
WScript.Sleep 100
oShell.Sendkeys "password~"
Wscript.Quit

In XP Home I'm trying to get crossloop running on a user level account as admin by using a VBS script - this returns 'cannot load xml file' although the script is in the shared crossloop folder. Dya think it's an environmental variable that needs defining?

If I manually click the crossloop icon and do a RunAs from the user desktop everything works fine
 
In XP Home I'm trying to get crossloop running on a user level account as admin by using a VBS script - this returns 'cannot load xml file' although the script is in the shared crossloop folder. Dya think it's an environmental variable that needs defining?

If I manually click the crossloop icon and do a RunAs from the user desktop everything works fine

crossloop sucks anyway.
 
Logmein - free , screens come faster, if it doesn't have encryption use windows IPsec.
Hmmm that looks interesting - thanks I'll look into it some more
 

Advertisers

Back
Top