-
January 5th, 2006, 00:49 AM
#11
Banned
Kane,
Last time I tried to do this I wrote a batch file to execute the runas command with a text file containing the password piped to the stdin, it didn't work for some reason.
Is there a way to modify this script (VBS is new to me, batch files I know suck but are good enough to meet my normal needs) to accept a parameter?
For example if I type runadmin program name at the cmd prompt or in a short cut it'll run the program as Admin.
I've tried using %1 as a parameter to the runas command in your script as I would with a batch file but it didn't work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks