2

Is there any method to get admin access in Win-7 while running the perl script?

1

1 Answer 1

1

If you don't mind running the whole script as administrator, you can use the shell "runas" command:

runas /profile /env /user:mydomain\admin "perl myscript.pl"
1
  • Is it not possible to get admin access in runtime (i.e in the myscript.pl)
    – hemanth
    Mar 12, 2013 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.