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

Possible Duplicate:
Windows 7 Administrator Command Prompt “Start in” Path

I have it set to c:\myfolder. If i click Start->Command Prompt it opens a console window started at c:\myfolder.

If i use Ctrl+Shift+click (start a program w/ administrative rights) to start Command Prompt, it opens to c:\windows\system32.

Why? And how to fix this?

share|improve this question

marked as duplicate by Sathya, quack quixote, BinaryMisfit Jan 4 '10 at 13:02

This question was marked as an exact duplicate of an existing question.

Giscard - Refer to answer provided by Molly -… – Sathya Jan 4 '10 at 12:27
duplicate:… – quack quixote Jan 4 '10 at 12:34

only if you change the default startup directory for the command prompt globabally, so it will always start in this directory:

  • Click Start, Run and type Regedit.exe
  • Navigate to the following branch:

HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor

  • In the right-pane, double-click Autorun and set the startup folder path as its data, preceded by "CD /d ". If Autorun value is missing, you need to create one, of type REG_EXPAND_SZ or REG_SZ in the above location.

alternatively you may add this option to your contect menu:

Launch an elevated Command Prompt from the context menu

To add the Open Command Window Here (Administrator) option to the context menu for file system folders, use the following REG file:

Windows Registry Editor Version 5.00

@="Open Command Window Here (Administrator)"

@="cmd.exe /s /k pushd \"%V\""

To add the entry to Computer (My Computer) context menu, use the following REG file:

Windows Registry Editor Version 5.00

@="Open Command Prompt (Administrator)"



Copy the above contents to Notepad, and save the file with .REG extension. Then right-click the REG file and choose Merge.


share|improve this answer

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