Author Topic: "Open file location" for Links Needed for MultiCommander  (Read 11530 times)

total_annihilation00

  • Active Member
  • ***
  • Posts: 54
  • Tech Savant\ Envisioneering
    • View Profile
What does "Show HotPath" (Ctrl+,) do ? I want a feature to Goto the the actual file path of an link (.lnk). Windows Explorer has a function for this ("Open file location") in Right-click menu, but it opens it in Explorer, wish MC had a similar function !! Is there a workaround to add this functionality ? Otherwise thrilled /w the new features & options !  :D
P.S: I would like to add the "Open file location" command to MC's "Custom Context Menu".
« Last Edit: April 29, 2024, 10:50:38 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 552
  • Old Skull
    • View Profile
Re: "Open file location" for Links Needed for MultiCommander
« Reply #1 on: April 27, 2024, 14:15:38 »
MC has a MultiScript function GetWinShortcutTarget(). So the simplest multiscript UDC could look like:
Code: [Select]
@var $lnk = GetSourceFocusPath();

@var $path = GetWinShortcutTarget( $lnk );
MC.Explorer.Goto SOURCE="{$path}";

total_annihilation00

  • Active Member
  • ***
  • Posts: 54
  • Tech Savant\ Envisioneering
    • View Profile
Re: "Open file location" for Links Needed for MultiCommander
« Reply #2 on: April 27, 2024, 18:36:00 »
MC has a MultiScript function GetWinShortcutTarget(). So the simplest multiscript UDC could look like:
Code: [Select]
@var $lnk = GetSourceFocusPath();

@var $path = GetWinShortcutTarget( $lnk );
MC.Explorer.Goto SOURCE="{$path}";

Thanks a lot, appreciate it !! That works brilliantly ! 8) Using it in "Custom Context Menu" after creating an UDC. I named it "Goto Actual FilePath Link" and used the filter *.lnk to work only on link files.
P.S: It also works on .qalnk files (QuickAdmin UAC-Bypass shortcut files) —that's an added bonus !!
P.P.S: Currently it doesn't work on Microsoft Store Apps shortcuts or DOSBox Games Launcher .lnk shortcuts (takes you to the DOSBox Games Launcher folder —maybe this is not a bug as it permeates through 3 different files when accessed.) Not that this is important, but thought I should let you know.
« Last Edit: April 27, 2024, 20:26:31 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~