How can I default the command promt in Windows 10 to the C drive?

When I open a command promt, it defaults to the S drive, not the C drive.
My scripts are therefore not working the way they were designed..

How can I configure the default to be C, instead of S for the command prompt in Windows 10 pro?
Thank you.
Who is Participating?
pjamConnect With a Mentor Commented:
Right click on cmd and select properties and change start in directory to C:\
Edward PamiasTeam Lead RRS DeskCommented:
In the command prompt shortcut just add..

C:\Windows\System32\cmd.exe /k "cd c:\"
Lee W, MVPTechnology and Business Process AdvisorCommented:
You could also modify your scripts so they start in the correct place - that's the better long term solution since you'll have to do this otherwise on any system you copy the scripts to/user that uses them.
SandeepSr System AdministratorCommented:
Open regedit and browse to this path

HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Create new string vale named Autorun. Set its value to cd /d C:\. (Here whatever path you mention, next time on wards your command prompt will open in that path only)

Run cmd again.

Try your luck, I tried and it worked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.