Change Default Directory for Run Command

G

GreyCloud

With the info Dave-UK just provided, I wonder if your Registry key
where this stuff is stored is read-only, or something to that effect.
If it were my system behaving like yours, I'd be curious enough to
check that. I like how mine's working, though, so I'm not messing with
it. :)
I believe that the cmd.exe is working like it should be. Other
operating system terminal like programs behave the same way when they
start up by putting the user in his own home directory, such as VMS or
Solaris. So I wasn't really curious as to why cmd.exe was doing this as
I accepted it doing it this way as other operating systems handle it
this way.
 
C

Char Jackson

I believe that the cmd.exe is working like it should be. Other
operating system terminal like programs behave the same way when they
start up by putting the user in his own home directory, such as VMS or
Solaris. So I wasn't really curious as to why cmd.exe was doing this as
I accepted it doing it this way as other operating systems handle it
this way.
I have a shortcut to Command Prompt (cmd.exe) pinned to the Start menu
and set to open in D:\, which is where I almost always want it, so
that's not a problem.

In this case, though, we're talking about (I think) the file browser
dialog that you reach when you navigate to Start-> Run-> Browse, which
is different from cmd.exe.
 
G

Gene E. Bloch

I have a shortcut to Command Prompt (cmd.exe) pinned to the Start menu
and set to open in D:\, which is where I almost always want it, so
that's not a problem.

In this case, though, we're talking about (I think) the file browser
dialog that you reach when you navigate to Start-> Run-> Browse, which
is different from cmd.exe.
I just experimented (note that I have not customized the cmd start-menu
shortcut).

Vanilla cmd.exe opens in my user directory.

Elevated cmd.exe opens in the Windows system32 directory.

Funny (as in it amuses me).
 
G

Gene E. Bloch

My bad, was thinking of running commands in folders. As to the "Run"
box, it should retain the last folder one browsed to, UNless user has
installed some privacy software or such.
Not horrendous :)

On those occasions when I do open the Run box, it always presents me the
last command I executed there.

Since I rarely browse there, I don't know what that does. I'm not even
sure which choice I'd prefer. Your idea sounds good, though...
 
C

Char Jackson

I just experimented (note that I have not customized the cmd start-menu
shortcut).

Vanilla cmd.exe opens in my user directory.
I wonder if mine defaulted there, as well. Probably so. It's been too
long and I no longer remember. I don't do anything in my user folders,
though, so that's why I changed mine to open elsewhere.
Elevated cmd.exe opens in the Windows system32 directory.
My shortcut is elevated, I guess, since it always opens as elevated.
Funny (as in it amuses me).
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top