[solved] Opening directory of the shortcut (.lnk) target
Moderators: Hacker, petermad, Stefan2, white
[solved] Opening directory of the shortcut (.lnk) target
Is there a way to open in the opposite pane the directory containing the shortcut (.lnk) of the target file?
E.g. In the one pane I have a shortcut (.lnk file) whose target is: "c:\Users\John\Documents\mydoc.docx"
How can I open in the other pane its directory, i.e. "c:\Users\John\Documents\"
Thanks.
E.g. In the one pane I have a shortcut (.lnk file) whose target is: "c:\Users\John\Documents\mydoc.docx"
How can I open in the other pane its directory, i.e. "c:\Users\John\Documents\"
Thanks.
Last edited by sorcar on 2015-07-18, 20:21 UTC, edited 3 times in total.
Or Ctrl+Up to open it in a new tab on the same side.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Sorry, if I could not explain it well. I want to open the working directory, not the file pointed by the shortcut.
My lnk file, say is in "c:\temp\mydoc.lnk" pointing to the file "c:\Users\John\Documents\mydoc.docx".
I would like to open the working directory, ie, "c:\Users\John\Documents\".
The three keystrokes above (plus Ctrl+PgDn) open the file, not the directory.
Regards.
My lnk file, say is in "c:\temp\mydoc.lnk" pointing to the file "c:\Users\John\Documents\mydoc.docx".
I would like to open the working directory, ie, "c:\Users\John\Documents\".
The three keystrokes above (plus Ctrl+PgDn) open the file, not the directory.
Regards.
sorcar wrote:Sorry, if I could not explain it well. I want to open the working directory, not the file pointed by the shortcut.
Are you sure you mean the shortcut's working directory? That can be a completely different directory that may have nothing to do with the file the shortcut points to.
Yes and no. If the file the shortcut points to can be opened by TC (any type of archive) the file is opened. Just like in this case since .docx fiiles are ZIPs. But I don't think that's a problem. Just go one level up (e.g. Ctrl+PgUp) and you're in the directory of the file the shortcut points to.The three keystrokes above (plus Ctrl+PgDn) open the file, not the directory.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Add to Wincmd.inisorcar wrote:Sorry, if I could not explain it well. I want to open the working directory, not the file pointed by the shortcut.
My lnk file, say is in "c:\temp\mydoc.lnk" pointing to the file "c:\Users\John\Documents\mydoc.docx".
I would like to open the working directory, ie, "c:\Users\John\Documents".
The three keystrokes above (plus Ctrl+PgDn) open the file, not the directory.
Regards.
CtrlArrowOpenArchive=4
Five keyboard combinations have been discussed. Presuming my shortcut is in the left pane:
Ctrl+Right = shows the target file on the left pane
Ctrl+Left = shows the target file in the same (left) pane
Ctrl+Up = same as Ctrl+Left
Ctrl+PgDn = shows the target file in the same pane
Ctrl+PgUp = moves up one level (same as Backspace)
None opens the directory "c:\Users\John\documents\".
I can now Ctrl+Enter [to open the properties dialog box], manually copy the path [quite cumbersome], go to the command line, type cd, paste, and then hit enter to open the target directory. Is there a way with a single key combination?
Ctrl+Right = shows the target file on the left pane
Ctrl+Left = shows the target file in the same (left) pane
Ctrl+Up = same as Ctrl+Left
Ctrl+PgDn = shows the target file in the same pane
Ctrl+PgUp = moves up one level (same as Backspace)
None opens the directory "c:\Users\John\documents\".
I can now Ctrl+Enter [to open the properties dialog box], manually copy the path [quite cumbersome], go to the command line, type cd, paste, and then hit enter to open the target directory. Is there a way with a single key combination?
sorcar,
When you press Ctrl+Arrow on LNK file, TC goes to target object (opens folder containing object and focuses that object). If this file is an archive or directory, TC enters it instead by default, but you can then press Backspace or Enter (or Ctrl+PgUp as Dalai suggested) and go one level up so you'll see that file focused.
Note that if you don't want to enter archives on Ctrl+Arrow and want just to focus them, you should add configuration parameter mentioned by Horst.Epp.
When you press Ctrl+Arrow on LNK file, TC goes to target object (opens folder containing object and focuses that object). If this file is an archive or directory, TC enters it instead by default, but you can then press Backspace or Enter (or Ctrl+PgUp as Dalai suggested) and go one level up so you'll see that file focused.
Note that if you don't want to enter archives on Ctrl+Arrow and want just to focus them, you should add configuration parameter mentioned by Horst.Epp.
sorcar wrote:Five keyboard combinations have been discussed.
No, there are only three to open a shortcut's target. Ctrl+PageUp/PageDown have a different meaning/function: go one level up or one level down (enter/exit a directory or achive).
Uh, no, the other leftCtrl+Right = shows the target file on the left pane

Not correct. Ctrl+Up opens the shortcut's target on the same side. So, when the left pane is active, the target is opened on the left side, and when the right pane is active, the shortcut's target is opened on the right side.Ctrl+Up = same as Ctrl+Left
Not quite correct either. Set the option Horst mentioned and you can use Ctrl+Left or Ctrl+Right or Ctrl+Up, and TC won't open the .docx file as archive. But you can also ignore this setting and use Ctrl+Left, Ctrl+Right or Ctrl+Up to open the file as archive and subsequently use Ctrl+PageUp to exit the "archive". Either way, both of them work as described.None opens the directory "c:\Users\John\documents".
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
MVV: Thanks for the clear reply (as usual)
Dalai: Thanks for catching the mistakes. I wish I could be that meticulous.
Both: It behaved exactly as you said in a new installation of TC. But in my old installation Ctrl-Right, Ctrl-left and Ctrl-PgDn it showed "c:\temp\mydoc.lnk\*.*" and did not open the directory in either pane. Some obscure setting or plugin might be causing this. Thanks for explaining the feature that I was looking for some months now.
Dalai: Thanks for catching the mistakes. I wish I could be that meticulous.
Both: It behaved exactly as you said in a new installation of TC. But in my old installation Ctrl-Right, Ctrl-left and Ctrl-PgDn it showed "c:\temp\mydoc.lnk\*.*" and did not open the directory in either pane. Some obscure setting or plugin might be causing this. Thanks for explaining the feature that I was looking for some months now.