bestsmr Posted September 25, 2011 Share Posted September 25, 2011 Hello I tried this code to run an application as administrator , but it failed . can someone correct my code ????????. ************ RunAs ( "administrator", @ComputerName , "password", 0, "C:\windows\notepad.exe" ) ************ Link to comment Share on other sites More sharing options...
Ramzes Posted September 25, 2011 Share Posted September 25, 2011 Are you sure your password to Administrator is "password"? Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font] Link to comment Share on other sites More sharing options...
jazzyjeff Posted September 25, 2011 Share Posted September 25, 2011 What OS are you using? Link to comment Share on other sites More sharing options...
bestsmr Posted September 25, 2011 Author Share Posted September 25, 2011 Ramzes : the pasword is "123456" and I write it in position "Password"jazzyjeff : my Operating System is "microsoft windows 7" I am waiting for help.............. Link to comment Share on other sites More sharing options...
bestsmr Posted September 26, 2011 Author Share Posted September 26, 2011 why ther is no one help me ??????????????? I am waiting................................. ..................................... .................................... Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 26, 2011 Share Posted September 26, 2011 Run("Notepad") , why you don't select it ? You can R.Click -> Run as administrator or add "#RequireAdmin" to your script . I hope it work Link to comment Share on other sites More sharing options...
bestsmr Posted September 26, 2011 Author Share Posted September 26, 2011 thanks MrVietA2 really it is what I was searching for Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now