Hi,
I am running a batch file from ruby using:
ge=UI.openURL(Sketchup.find_support_file('')+"/registergoogleearthcmd.cmd")
inside the batch file is the following:
"C:\Users\Simon\Documents\Action Design Your Own v2\Action 3D\client\googleearth.exe" /regserver
however when I run sketchup and the batch file is loaded it says it needs to be run as administrator now this command works fine if I load up cmd as admin and manually typing it in it goes straight through.
So my question is how can I run this from ruby as an administrator?
Simon
run batch file from ruby as admistrator
7 posts
• Page 1 of 1
Re: run batch file from ruby as admistrator
What would be the point of having an Operating System Security if any script was allowed to run with Administrative Rights? Oh wait... I do remember MS-DOS ![]()
Re: run batch file from ruby as admistratorhmm so there is no way of doing this? I have updated my script with the following:
if I cant run as admin is there any other way or registering google earths location outside of its default through command line or ruby? Simon Re: run batch file from ruby as admistratorYou'd need to use the runas.exe utility.
It's in the Windows/system32 folder, so is available in the PATH. Open a CMD window, and type: runas /? for parameter information. For more info, do a search at MSDN
Re: run batch file from ruby as admistratordont worry solved I just need to right click sketchup and run as administrator
Re: run batch file from ruby as admistrator
Manual? I could have told you that! You asked how to do it with a batchfile... ![]()
Re: run batch file from ruby as admistratoryes I know, but that easiest solution slipped through my hands
![]()
7 posts
• Page 1 of 1
|
Who is online
Users browsing this forum: No registered users and 14 guests