Jump to content

RunAs Adminstrator not working


Recommended Posts

  • Developers
2 minutes ago, galvatec said:

But this is the way that is in the code : C:\Program Files (x86)\iVMS-4200 Station\iVMS-4200\iVMS-4200 Client\iVMS-4200.exe

The last post clearly shows the path is still wrong! I can't be that hard to copy the proper path from the explorer window into the script!
Also that last shown runas() statement is NOT the one I proposed as it is lacking the WorkDir parameter. 

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

20 hours ago, galvatec said:

Is there another way to check the path of an executable?

In the Windows File Explorer, if you hold the SHIFT key down and RIGHT+CLICK a file, you should see an option to "Copy as path".  This copies the complete path of the file to the clipboard (wrapped in double quotes) so that it can be pasted elsewhere.  That's a foolproof way to make sure that the path is correct.

Edited by TheXman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...