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
Configurable Command Prompt
Re: Configurable Command Prompt
AHH, on the left side, in the tree view, there is it. Thank you.
And now i see that i use the wrong term to search the standard shortcut list.
And now i see that i use the wrong term to search the standard shortcut list.
Re: Configurable Command Prompt
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
Creat
-
Jeff Bellune
- Posts: 284
- Joined: 13 Dec 2007 12:55
Re: Configurable Command Prompt
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
-Jeff
Re:
admin wrote:FYI, this Open-UDC:Gandolf wrote:And it's there - Thanks Donald.
"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:
Yup, works for me. v8.60.0108kartal wrote:admin wrote:FYI, this Open-UDC:Gandolf wrote:And it's there - Thanks Donald.
"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?
Re: Re:
Perhaps what is happening is that "cd" will change the directory on the specified drive, but not change the active drive.kartal wrote: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?admin wrote:FYI, this Open-UDC:Gandolf wrote:And it's there - Thanks Donald.
"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?
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: 64887
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Re:
Let me know if that helps, and I add <curdrive>.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...
FAQ | XY News RSS | XY X
Re: Configurable Command Prompt
You could just change it to be: "cmd" /K "cd /D <curpath>" no need for another XY-var.
Re: Configurable Command Prompt
TheQwerty wrote:You could just change it to be: "cmd" /K "cd /D <curpath>" no need for another XY-var.
Even so, I'm guessing that <curdrive> may be a useful addition for some scripts...
But thanks for refreshing my memory!
XYplorer Beta Club