Change the default startup directory for Command Prompt

  • 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  C:\Program Files\Nmap> “. If Autorun value is missing, you need to create one, of type REG_EXPAND_SZ or REG_SZ in the above location.