Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Changing command prompt drive

Changing command prompt drive 13 years 1 week ago #1806

  • thorpe
  • thorpe's Avatar
  • Offline
  • Frequent Member
  • Posts: 45
  • Karma: 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
The administrator has disabled public write access.

Re: Changing command prompt drive 13 years 1 week ago #1807

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
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
The administrator has disabled public write access.

Re: Changing command prompt drive 13 years 1 week ago #1809

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
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
The administrator has disabled public write access.

Command line autocomplete 13 years 6 days ago #1841

  • Dudbolt
  • Dudbolt's Avatar
  • Offline
  • Frequent Member
  • Posts: 35
  • Karma: 0
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
The administrator has disabled public write access.
Time to create page: 0.080 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