Page 1 of 1

[SOLVED] Cannot open a folder shortcut with "tab" command

Posted: 22 Nov 2018 20:01
by Leito
I'd like to open a new tab from a shortcut (lnk) path.

Code: Select all

tab("new", "C:\Shortcuts\ProgramData.lnk");
tab("new", "C:\Shortcuts\ProgramData");
Both return "Location currently not available."

Is it actually supported? If not, could it be? :mrgreen:

Re: Cannot open a folder shortcut with "tab" command

Posted: 23 Nov 2018 18:31
by admin
That's a wish. :)

Re: Cannot open a folder shortcut with "tab" command

Posted: 26 Nov 2018 10:39
by Leito
Are you inclined to add this?

My use case is this: I use several folders paths in User-Defined Commands and scripts. For the sake of keeping those UDC / scripts portable, and to easily synchronize them between my different machines, I want to :
  • Create shortcuts for those folders (that could point to a different path on each machine).
  • Modify my UDC / scripts to call the shortcuts, and not the folders directly.
That way, when I want to synchronize my UDC / scripts on a machine, I only have to make sure the shortcuts are here, and I don't have to update my UDC / script anymore in case one folder path is different from the other machine.

(Can you move this to the Wishes section please?)

Re: Cannot open a folder shortcut with "tab" command

Posted: 26 Nov 2018 10:53
by admin
Okay. :)

Re: Cannot open a folder shortcut with "tab" command

Posted: 26 Nov 2018 12:08
by Leito

Code: Select all

v19.40.0006 - 2018-11-26 12:02
    + SC tab: Now you can pass LNK files as new location (when the target is a 
      folder). The new tab will be opened at the LNK target. Example:
        tab("new", "C:\Shortcuts\ProgramData.lnk");
Thanks a lot! :beer: