Results 1 to 2 of 2

Thread: Redirecting the command prompt to a user defined directory

  1. #1
    Javeon Edrich is offline Banned
    Join Date
    Jul 2009
    Posts
    76
    Rep Power
    0

    Default Redirecting the command prompt to a user defined directory

    You still use the command prompt for some tasks. It would be practical if you could automatically switch to a particular directory when you call up the prompt.

  2. #2
    Join Date
    Jul 2009
    Posts
    72
    Rep Power
    3

    Default

    With a registry entry, you can define commands for the command line, which the system executes when starting a command prompt window. This can be compared to running the 'autoexec.bat' file when starting old DOS and Windows systems. For this, open the 'Run' command in the start menu, enter 'regedit' and click 'OK'.

    In the registry editor, navigate your way to the 'HKEY_CURRENT_ USER\Software\M icrosoft\Com mand Processor' key. Go to 'Edit I New I Expandable string value', enter 'Autorun' and press enter. The new value type must now be 'REG_EXPAND_SZ'. To edit the new entry, double-click 'Autorun'. In the value field, enter the command that should be automatically executed when the command prompt starts.

    For example:
    cd c:\Windows
    The above value takes you directly to the 'Windows' directory on starting the command prompt. Similarly, you can start up the command prompt at any other directory of your choice.
    Last edited by Javaughn Denness; 07-14-2009 at 05:35 AM.

Similar Threads

  1. The PROMPT command
    By Cadmus4778 in forum Everything Else
    Replies: 0
    Last Post: 11-29-2008, 10:40 AM
  2. Open Command Prompt In A Specified Directory
    By qaalin in forum Everything Else
    Replies: 0
    Last Post: 06-28-2008, 05:33 PM
  3. Open Command Prompt In A Specified Directory
    By rendshlee in forum Everything Else
    Replies: 0
    Last Post: 05-17-2008, 12:50 PM
  4. Command Prompt History
    By rendshlee in forum Programming
    Replies: 0
    Last Post: 05-17-2008, 12:16 PM
  5. Windows Command Prompt
    By rendshlee in forum Everything Else
    Replies: 0
    Last Post: 05-17-2008, 12:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48