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

total_annihilation00

  • Junior Member
  • **
  • Posts: 21
  • 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: Today at 12:10:42 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: 513
  • Old Skull
    • View Profile
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

  • Junior Member
  • **
  • Posts: 21
  • Tech Savant\ Envisioneering
    • View Profile
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.
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~