cyberguy91 Posted May 14, 2013 Share Posted May 14, 2013 (edited) I was looking for a Windows equivalent to the linux su command. I found one topic on here, but it is outdated and doesn't work for me. So, I wrote a small script to emulate the su command. #NoTrayIcon #RequireAdmin Run("cmd.exe", @UserProfileDir) Exit This should bring up the UAC prompt if you have UAC enabled, otherwise it should just launch. Also, you can change the "@UserProfileDir" section to whatever directory you want the command prompt to start in, I just usually need it in the profile directory. Edited May 14, 2013 by cyberguy91 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 14, 2013 Moderators Share Posted May 14, 2013 (edited) Usually Examples do something more than a single line bringing up the command window, especially when the functionality is built into the Run command. Not really showing anything new... Edited May 14, 2013 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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