New to using the command prompt? Check out the Windows Command Prompt Beginner’s Guide

If you run a lot of scripts from the Command Prompt, I’d like to share a quick tip that saves me time every time I open it.

To open the command prompt in your scripts (or any) directory, locate the shortcut to the command prompt, right click it, and click Properties.

Change the Start in field to match your scripts directory i.e.:

“E:\Documents\My Dropbox\Scripts”






Now, when you open the command prompt (using the shortcut you modified) you’ll start in your new base directory:

Bonus Tip: Start in Multiple Directories

If you have multiple directories from which you’d like to start, you can simply create a number of command prompt shortcuts in your start menu.

Name each shortcut a different name i.e. “scripts“, “media“, “tasks” etc. and update the Start in field for each shortcut. Now you can press the Windows Key, type media, press Enter, and have a command prompt ready to roll in your media directory.

About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix them.

Free PC tips by email

Search Windows Guides


2 thoughts on “Set the Command Prompt to Open in Your Scripts Directory [Quick Tip]”

  1. UVAIS says:

    Thanks for nice Tip :;

  2. georgin says:

    merci pour cette astuce

Comments are closed.