Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

up vote 3 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .