• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

A little help with default directory in cmd.exe

Wolf00

Member
I like to use the command prompt a lot and access it quickly by hitting the windows key and R and then typing cmd and hitting enter. When the command prompt comes up, the current directory is the path to my profile (c:\documents and settings\someuser\). This is kind of annoying to me because it's a little more difficult to follow what is being typed and displayed on the screen when the current directory is so long. When I'm on the network this isn't a problem because it comes up to the "H:" drive which is where my home directory is mapped to. I would prefer that it would come up at just C:\, but I haven't been able to figure out how to set this up. Before anybody suggests it, I know that if I were to use the Command Prompt shortcut, I could just add /k "cd \" after the cmd.exe and that would work, but I don't use the shortcut because I use keyboard shortcuts and I don't like to take my hands off the keyboard.
One option that I've seen suggested as a fix for this is to setup a home directory for the user and then cmd will open to that folder. As I mentioned above, when I'm connected to the network when I login, that is exactly what happens. I'm looking for a solution for when I'm not on the network.

I hope somebody can help.
Thanks
 
I assume when you say not on the network you are not logging into the domain but instead a local user account? If so go into Computer Management>Users and Groups and double click on the user you want to change. Then click on the profile tab and set the home directory to whatever you want. CMD should now open up there by default
 
You should just be able to create a shortcut to "cmd.exe /k "cd \"" and put it on the desktop. Then right-click on the icon for the shortcut, go to properties, and in the window that you get, you can set up a shortcut key combination that you can use to run that shortcut.

Edit: Or, even better, just create a shortcut that runs "cmd.exe" and in the "Run In" properties window, set it to run in C:\, instead of the default that it's set to.

JW
 
mikecel79:
When I said "not on the network", I meant that I'm still logging into my computer with my domain account, but without the computer connected to the network. In this case, I don't want to modify the home directory for the user account since it's my domain user account.

JW310:
As I stated in my original message, I could create the shortcut that you are describing (I described the same thing in my message), but I am looking for a solution that would work when I run cmd.exe from the run box since I can bring up the run box with a keyboard shortcut and then type in cmd and hit enter to bring up a command prompt. I am a very keyboard oriented person and if my hands are on the keyboard, I prefer to keep them there rather than reach for the mouse to run a shortcut.


I appreciate the responses so far. If anybody else has any other ideas, I'd very much appreciate it if you could let me know.

Thanks
 
Back
Top