Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have configured ansicon to display ANSI colors in cmd.exe, but it only works when cmd is run in administrator privileges. I'm also using Launchy to start cmd.exe (not only cmd). Problem is that if I want to run cmd.exe as Administrator I need to use Windows run (Win+R), type cmd and hit SHIFT+CTRL+ENTER. Do you have any ideas how to optimizie this, to run cmd.exe as Administrator using Launchy.

share|improve this question
add comment

migrated from stackoverflow.com Aug 12 '12 at 14:21

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

Download elevate from http://cdn.winability.com/files/Elevate.zip and extract it somewhere.

Configure Launchy to use it like so:

  1. Click the little gear icon to open the options dialog.

  2. Click the plugins tab.

  3. Click "Runner" on the left.

  4. Click the + button and enter the following for each field:

    Name - acmd

    Program - C:\WINDOWS\system32\Elevate.exe (OR, Elevate64.exe if you are on 64 bit windows)

    Arguments - C:\Windows\System32\cmd.exe

Like so :

enter image description here

Now to open an admin cmd prompt just type acmd in Launchy.

Update

I just made a screencast to demonstrate the whole process.

Acknowledgements

  1. Detect if running with administrator privileges under Windows XP
  2. Elevate Documentation
  3. Original Idea
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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