• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About

Windows: Create Command Prompt That Opens To Specific Folder Location

May 16, 2017 by Mitch Bartlett 2 Comments

Here is a quick and easy Windows tip that can come in pretty handy if you find yourself always wanting to access a specific location on your hard drive using a command prompt. In the following example, I will create a shortcut to a command prompt window that opens using my desktop as the root. This can be handy when you want to work with files that you are using on your desktop (e.g. that you just downloaded from Firefox, etc.)

  1. Right-click in the open space of your desktop and click “New“> “Shortcut“.
  2.  For the location, type or copy and paste one of the following lines. The first one is standard, while the second one is used in administrator mode.
    • %windir%\system32\cmd.exe /k
    • %windir%\system32\cmd.exe /k cd \Users\YourAccount\Desktop
  3. Click “Next“.
  4. For the name, type something descriptive, like “Command Prompt at Desktop” then click “Finish“.
  5. Now right-click on the new shortcut and choose “Properties“.
  6. Change the “Start In” field to whatever directory you want the command prompt to start in. In this case, we want it to start in my desktop, so I would type in:
    • "C:\Users\Mitch\Desktop\" - Be sure to include the quotation marks, and of course you would need to customize this file path to your own system (i.e. replacing “knr” with your own Windows username).
      CMD Shortcut Properties
  7. You can assign a shortcut key if you like, as well as configure other options. If you use this icon in administrator mode, right-click the icon, then select “Shortcut” > “Advanced…“, then check “Run as administrator“). Once you have finished, click “OK“.

(Optional) Click and drag the shortcut that you created onto your Quick Launch toolbar, or put it anywhere you prefer so that you can access it quickly.

That’s it! Now, whenever you want a command prompt window at the location that you specified in the shortcut, just click the icon (or use your shortcut key, if you defined one) and you are in business!

CMD Shortcut Box

You Might Also Like

  • Fix: Can't Create OneDrive Folder in the Selected Location
    Fix: Can't Create OneDrive Folder in the Selected Location
  • Windows 10: Use the Command Prompt to Close a Process
    Windows 10: Use the Command Prompt to Close a Process
  • Windows 10 Command Prompt Appears Then Disappears
    Windows 10 Command Prompt Appears Then Disappears
  • Windows 10 - How to Uninstall a Program Using the Command Prompt
    Windows 10 - How to Uninstall a Program Using the Command…
  • Windows Command Prompt: How to Change the Font and Colors
    Windows Command Prompt: How to Change the Font and Colors
  • Windows: Create Folders From Command Line
    Windows: Create Folders From Command Line

Filed Under: Windows

Reader Interactions

Comments

  1. Rick Fithen says

    August 2, 2018 at 8:04 pm

    Excellent!!!!

  2. Samantha says

    May 31, 2017 at 7:21 am

    Will these steps work if im using windows 10?

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • 9 Best iMovie Equivalents for Windows 11
  • How to Fix Outlook Disconnected from Server Error: Top 11 Methods
  • 3 Ways to Choose All Files in a Folder – Windows 11
  • Apple TV+: How to Erase a Show From the Up Next List
  • How to Change the Profile Picture on Disney+
  • Local Security Policy: What Is It and How to Open It in Windows 11
  • How to Create and Erase an Alarm in Windows 11
  • 10 Best NAS Storage Device for Home and Professional Use

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95
  • Windows Media Player (WMP)

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy