Changing drive and directory

This is a discussion on Changing drive and directory within the Tech Board forums, part of the Community Boards category; When I open the command prompt the drive is always set to a certain one. How can I change it ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    5

    Changing drive and directory

    When I open the command prompt the drive is always set to a certain one. How can I change it to the one I want? Also, is there a way I can make it the drive and directory I want every time I open the command prompt? Thanks.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >How can I change it to the one I want?
    Use cd to change to a different directory. For example, if you're starting in the hom directory, you can say "cd C:\" to change to the root directory.

    >Also, is there a way I can make it the drive and directory I want
    >every time I open the command prompt?
    Not without editing the registry, that I can recall at the moment. You don't want to edit the registry...it's scary.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    5
    I can change directories fine, I just need to change the drive. It's set on C:\ and I need it to be E:\

  4. #4
    Registered User TactX's Avatar
    Join Date
    Oct 2005
    Location
    Germany.Stuttgart
    Posts
    65
    http://windowsxp.mvps.org/autoruncmd.htm

    Found by using the power of almighty google.

    And please explain me: Which part of your question is related to C? Well except C:\

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    5
    I'm using Visual Toolkit Command Prompt.

  6. #6
    Ultraviolence Connoisseur
    Join Date
    Mar 2004
    Posts
    478
    Change to drive E? Just type "e:" at the command prompt.

  7. #7
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    if you are using XP, there is no need to edit the registry. Click Start, right-click the Command Prompt icon, then select Properties from the popup menu. In the Properties dialog, select the Shortcut tab. Then change the "Start in:" string to whatever you want.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying an entire directory
    By JustMax in forum C Programming
    Replies: 3
    Last Post: 03-11-2009, 04:06 PM
  2. i'm new to linux - which linux to install?
    By wakish in forum Linux Programming
    Replies: 38
    Last Post: 02-27-2006, 11:40 AM
  3. XP Shared Drive Problem(?)
    By Davros in forum Tech Board
    Replies: 2
    Last Post: 10-06-2002, 01:37 PM
  4. changing drive letter gaining access to a network
    By zornedge in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-29-2001, 09:57 AM
  5. Changing drive letter to go on a network
    By zornedge in forum C++ Programming
    Replies: 2
    Last Post: 11-29-2001, 06:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21