?
Solved

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

Posted on 2016-08-17
4
Medium Priority
?
59 Views
Last Modified: 2016-08-24
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.
0
Comment
Question by:100questions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Expert Comment

by:Edward Pamias
ID: 41759400
In the command prompt shortcut just add..

C:\Windows\System32\cmd.exe /k "cd c:\"
0
 
LVL 17

Accepted Solution

by:
pjam earned 2000 total points
ID: 41759417
Right click on cmd and select properties and change start in directory to C:\
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 41759438
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.
0
 
LVL 12

Expert Comment

by:Sandeep
ID: 41759650
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.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Determining the an SCCM package name from the Package ID
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses

777 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