open folder window in explorer

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Shift+RightArrow (or LeftArrow) is the safest way to focus the command line without risk of having what's already there altered. If you are not in Brief view or Thumbnail view, you don't even need to press Shift. This is also the way described in the help file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Cool, but Shift+(Right|Left) is not intuitive to me. Nor in tune with what all the other Left/Right combinations do (with or without modifier keys).
I don't see a need for 4+ keys (incl. Ctrl+Down and ALT+F8) to do the same basic task.

I'll fix it (if possible) with AHK to do:
If command-line is Not open:
--> Ctrl+Down: Opens command-line
If Command-Line is open, but not focused:
--> Ctrl+Down: Non-Destructively focus on command-line.

If Command-Line is open And focused:
--> Ctrl+Down: Toggles (opens/closes) command-line History.
[no change]: Up/Down Arrows puruses the History.

If command-line is focused And History is off/closed:
--> DownArrow: goes back to previous (source) FileList (panel)
--> UpArrow: goes to the Target FileList (panel)
The only thing lost with this simplification is, Ctrl+Down needs to be used twice to insert the last used command vs once now.
The gain is not needing to use 4+ different keys to non-destructively access the command-line and command-line history.

And as I Think about it, could also make it so if the command-line is not open, then Ctrl+Down does the same action as Ctrl+Shift+Enter :-)

Which in essence means:
1) I can make one button on the mouse (MButton5) do those "Ctrl+Down" actions, and
2) Scroll-Wheel Down already returns to FileList by default in TC. Thus just need to make Scroll-Wheel-Up go to Target Panel.
3) Perhaps make MButton4 be Enter when the Command-Line is Focused.
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

Select the desired folder with Total commander -> Right click with mouse to show contextual menu -> Open. Will open with Windows explorer instead of TC (at least in my computer with Windows 7). The good thing is that it works the same even if you don't have a mouse, because you can use the Menu key on your keyboard or use the button of your trackpad that emulates the mouse's right button if you have a notebook.
frozensun
Junior Member
Junior Member
Posts: 4
Joined: 2023-04-12, 18:17 UTC

Re: open folder window in explorer

Post by *frozensun »

necroposter breakink in:

Hi everyone!
I used this

Code: Select all

Command: explorer.exe
Parameters: %P
To make TC open the folder with explorer by pressing Ctrl+Enter. But it opens current folder. Is there a way to make it open the folder under the cursor?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: open folder window in explorer

Post by *Stefan2 »

frozensun wrote: 2023-04-17, 15:02 UTC necroposter breakink in:

Hi everyone!
I used this

Code: Select all

Command: explorer.exe
Parameters: %P
To make TC open the folder with explorer by pressing Ctrl+Enter. But it opens current folder. Is there a way to make it open the folder under the cursor?


Try to quote your %P-parameter >>>> "%P"






 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: open folder window in explorer

Post by *Horst.Epp »

This is my button

Code: Select all

TOTALCMD#BAR#DATA
C:\Windows\explorer.exe
/select,"%P%N"
C:\Windows\explorer.exe
Selected file in Explorer

0
-1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
frozensun
Junior Member
Junior Member
Posts: 4
Joined: 2023-04-12, 18:17 UTC

Re: open folder window in explorer

Post by *frozensun »

Stefan2 wrote: 2023-04-17, 15:20 UTC Try to quote your %P-parameter >>>> "%P"
no change
Horst.Epp wrote: 2023-04-17, 15:50 UTC This is my button
this stiill opens current directory but with preselected file/folder that was under the cursor.
but...
this %N parameter is what I was looking for.

Code: Select all

explorer.exe
"%P%N"
Does exactly what I need

Thank you!
ootoo
Junior Member
Junior Member
Posts: 17
Joined: 2022-02-28, 05:29 UTC

Re: open folder window in explorer

Post by *ootoo »

Command: explorer.exe
Parameters: %P

This command will open countless resource managers in the process. Each resource manager occupies 70M of memory and will not exit.
He does not open the current directory of TC in the only resource manager.
Instead, reopen a resource manager. You can open as many resource managers as you want. This is how I do it on win11.
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: open folder window in explorer

Post by *Fla$her »

2ootoo
Run from cmd:

Code: Select all

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v SeparateProcess /d 0
gpupdate /force
And use this scheme:
Command: rundll32.exe url.dll, OpenURL
Parameters: "%P" (or %P%N, if you want the system to open a folder or file under the cursor)
Last edited by Fla$her on 2024-09-08, 00:04 UTC, edited 1 time in total.
Overquoting is evil! 👎
ootoo
Junior Member
Junior Member
Posts: 17
Joined: 2022-02-28, 05:29 UTC

Re: open folder window in explorer

Post by *ootoo »

Fla$her wrote: 2024-09-07, 18:14 UTC 2ootoo
Run from cmd:

Code: Select all

reg /add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v SeparateProcess /d 0
 gpupdate /force
And use this scheme:
Command: rundll32.exe url.dll, OpenURL
Parameters: "%P" [color=#BFBFF](or[/color] %P%N, if you want the system to open a folder or file under the cursor)

The first code reg /add HKCU cannot be used,
The second method is perfect, thank you
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: open folder window in explorer

Post by *Fla$her »

ootoo wrote: 2024-09-07, 23:10 UTC The first code reg /add HKCU cannot be used
I forgot to remove the slash before add. Fixed.
Overquoting is evil! 👎
Post Reply