Launching Command Prompt to Specific Directory

Posted on 2006-05-03
Last Modified: 2008-02-01
I want to create a directory called MyDir on the root C:\ Drive, therefore the path being C:\MyDir.  I also want to set up a link to the command prompt that automatically launches the command prompt to the directory C:\MyDir.  How do I do this?
Question by:JOSHSKORN
    LVL 1

    Accepted Solution

    Make a copy of your Command Prompt shortcut:  

    Right-click on the copy, go to Properties
    and edit the Target: value so it appears like this:
    %SystemRoot%\system32\cmd.exe /K "cd\MyDir"

    For further information at the command prompt type: cmd /?
    This will provide other options available to you.

    That should do it.

    Author Comment

    Thanks.  That did the trick.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
    #Citrix #POC #XenDesktop #vCenter #VMware #ESX
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now