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

Member_2_5306354
Member_2_5306354 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Edward PamiasTeam Lead RRS Desk
Top Expert 2016

Commented:
In the command prompt shortcut just add..

C:\Windows\System32\cmd.exe /k "cd c:\"
Commented:
Right click on cmd and select properties and change start in directory to C:\
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
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 Administrator

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial