Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Changing command prompt drive

Changing command prompt drive 14 years 10 months ago #1806

  • thorpe
  • thorpe's Avatar Topic Author
  • Offline
  • Frequent Member
  • Frequent Member
  • Posts: 45
  • Thank you received: 0
When I open up cmd on windows XP it first goes to my X: drive ,that doesn't exisit

Is it possible to change what drive the cmd goes to eg C:\
is it stored in the regsitry etc...

thanks

Re: Changing command prompt drive 14 years 10 months ago #1807

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1447
  • Karma: 8
  • Thank you received: 13
Does this happen when you open the command prompt from "start-->run-->cmd" or when you double click at an existing shortcut to the 'dos prompt' ?
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx

Re: Changing command prompt drive 14 years 10 months ago #1809

Very simple solution, if you have a shortcut for it then just right click it and go to properties. By default it starts in %HOMEDRIVE%%HOMEPATH%, but you can change the 'Start in' section to whatever you want.

for my %HOMEDRIVE%%HOMEPATH% translates to :

[code:1]
C:\>echo %HOMEDRIVE%%HOMEPATH%
C:\Documents and Settings\Firestarter

C:\>
[/code:1]


You can also get Powertoys for XP which has a nice little 'open command prompt here' shell addon. Basically if you right click any drive / folder in explorer, it gives you the option of opening a command prompt in that directory. Very useful.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com

Command line autocomplete 14 years 10 months ago #1841

There is also a nifty little utility that will allow you to auto complete [sort of ] your command line.

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Command Processor

Right click on CompletionChar
DWORD change that to 9

restart and you are done. Pressing tab in the command line can complete the next match of the command that you are typing.

Just another thing to play with.....

Db
  • Page:
  • 1
Time to create page: 0.172 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup