Configurable Command Prompt

Features wanted...
Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Re: Configurable Command Prompt

Post by Creat »

actually, there is a command that allows you to open a default command prompt from any (or the current) folder.
the default shortcut is ctrl+alt+p, or it's in the context menu (5th entry from top if you right-click a folder in the tree)
if you want to customize it, if you open "tools -> customize keyboard shortcuts... -> miscellanous" it's the third from the top.

Creat

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Configurable Command Prompt

Post by Stefan »

AHH, on the left side, in the tree view, there is it. Thank you. :D
And now i see that i use the wrong term to search the standard shortcut list.

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Re: Configurable Command Prompt

Post by Creat »

Yea, it can be tricky to find stuff there I agree. I voted for the ability to 'filter' the (complete, across categories) list with a box at the top to type into (or similar) the same way opera does it (for example), didn't get enough votes for it to become reality though... Well maybe some day :)

Creat

Jeff Bellune
Posts: 284
Joined: 13 Dec 2007 12:55

Re: Configurable Command Prompt

Post by Jeff Bellune »

I "open a command prompt here" quite often, so I added an icon for it to the toolbar. Easy and brainless, which is just what my tired old brain needs. :)

-Jeff

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re:

Post by kartal »

admin wrote:
Gandolf wrote:And it's there - Thanks Donald.
FYI, this Open-UDC:
"cmd" /k "cd <curpath>"
will open the DOS box at the current path. :)

"cmd" /k "cd <curpath>&&dir"
will open the DOS box at the current path, and show the directory listing. :) :)

Yep, "&&" is the command concatenator... did you know?

Weird, "cmd" /k "cd <curpath>" does not work for me in 8.60.0106. It just opends the cmd in default system32 directory. Is it supposed to work?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Re:

Post by serendipity »

kartal wrote:
admin wrote:
Gandolf wrote:And it's there - Thanks Donald.
FYI, this Open-UDC:
"cmd" /k "cd <curpath>"
will open the DOS box at the current path. :)

"cmd" /k "cd <curpath>&&dir"
will open the DOS box at the current path, and show the directory listing. :) :)

Yep, "&&" is the command concatenator... did you know?

Weird, "cmd" /k "cd <curpath>" does not work for me in 8.60.0106. It just opends the cmd in default system32 directory. Is it supposed to work?
Yup, works for me. v8.60.0108

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: Re:

Post by avsfan »

kartal wrote:
admin wrote:
Gandolf wrote:And it's there - Thanks Donald.
FYI, this Open-UDC:
"cmd" /k "cd <curpath>"
will open the DOS box at the current path. :)

"cmd" /k "cd <curpath>&&dir"
will open the DOS box at the current path, and show the directory listing. :) :)

Yep, "&&" is the command concatenator... did you know?
Weird, "cmd" /k "cd <curpath>" does not work for me in 8.60.0106. It just opends the cmd in default system32 directory. Is it supposed to work?
Perhaps what is happening is that "cd" will change the directory on the specified drive, but not change the active drive.

In other words, if I'm at c:\windows in a cmd.exe window, and type
"cd d:\mydir"
nothing apparently changes. However, if I type
"d:"
I see that I'm in d:\mydir.

Similarly, if I now type
"cd c:\temp"
nothing changes until I type
"c:"
in which case I'm now in c:\temp...

Could this be part of the problem? I don't remember seeing a variable that would return only the current drive (maybe a <curdrive> variable might be useful), but if we had one, something like
"cmd" /k "<curdrive>&&cd <curpath>"
could do the trick...

admin
Site Admin
Posts: 64886
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Re:

Post by admin »

avsfan wrote:... I don't remember seeing a variable that would return only the current drive (maybe a <curdrive> variable might be useful), but if we had one, something like
"cmd" /k "<curdrive>&&cd <curpath>"
could do the trick...
Let me know if that helps, and I add <curdrive>.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Configurable Command Prompt

Post by TheQwerty »

You could just change it to be: "cmd" /K "cd /D <curpath>" no need for another XY-var.

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: Configurable Command Prompt

Post by avsfan »

TheQwerty wrote:You could just change it to be: "cmd" /K "cd /D <curpath>" no need for another XY-var.
:oops: Ah, yes... Now I remember that I had seen that, but had forgotten it...

Even so, I'm guessing that <curdrive> may be a useful addition for some scripts...

But thanks for refreshing my memory!

Post Reply