cant run application shortcuts (.lnk's)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
purple
Junior Member
Junior Member
Posts: 63
Joined: 2007-08-16, 19:48 UTC
Contact:

cant run application shortcuts (.lnk's)

Post by *purple »

all shortcuts, (.lnk's), can be ran from Explorer but not from TC 7.5, all i get is the "Error Executing Program!" window..

anyone could help?
thanks
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Overlay fired ?

Post by *Clo »

2purple

:) Hello !

• This occurs when you -or some tool- remove¦s the keys in the Registry to suppress the (ugly) overlay arrow-icons
added by Win on the icons of the Desktop.
- It's so here, and I have to live with… because IIRC, it seems that there is no workaround :( … except to restore these keys.
- This didn't occur with Win9x : In the same case, the *.LNK worked from TC…

:mrgreen: KR
Claude
Clo[face=arial][/face]
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it's a bug of the Windows function ShellExecuteEx. :(

Press Shift+F4 in Total Commander, write name linkfix.reg and press Enter. Paste the following code:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=""
Then choose "Save as" and set the file format to Unicode. Then double click on the file to fix the problem.
Last edited by ghisler(Author) on 2009-09-22, 16:40 UTC, edited 1 time in total.
Author of Total Commander
https://www.ghisler.com
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@Clo, I never noticed that when using TweakUI to remove the shortcut overlay arrow, or to modify it...
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Code issue ?

Post by *Clo »

2ghisler(Author)

:) Good evening,

Aside :
- Here, the code markers appear “as is” in your reply, I guess it's confusing… The key content is
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=""
- Any clue about the reason for ? The smiley is OK, so I don't see…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Fixed it, thanks! It seems that ShellExecuteEx looks for this "IsShortcut" entry to determine whether an extension belongs to a shortcut or not...
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Win2K ?

Post by *Clo »

2Balderstrom

:) Hello !

• Like I said above, that worked in Win 9x, I assume that you are talking of Win2K ?
- The Win bug is in XP for sure, I don't know with Vista¦Win7… :?

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
purple
Junior Member
Junior Member
Posts: 63
Joined: 2007-08-16, 19:48 UTC
Contact:

Post by *purple »

thanks ghisler, it worked..
also, thansk for the SHIFT+F4 thingy. didnt knew about it :)
User avatar
MVV
Power Member
Power Member
Posts: 8704
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

purple wrote:thanks ghisler, it worked..
also, thansk for the SHIFT+F4 thingy. didnt knew about it :)
I suggest you to read keyboard.txt file in TC folder, probably you'll know many other combinations. :wink:
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

A more complete repair reg file can be:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"

[HKEY_CLASSES_ROOT\.lnk\ShellEx]

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Command"="rundll32.exe appwiz.cpl,NewLinkHere %1"

[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
"NeverShowExt"=""

[HKEY_CLASSES_ROOT\lnkfile\CLSID]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Offline Files]
@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]

[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers]

[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}]
@="Shortcut"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\InProcServer32]
@="shell32.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\PersistentAddinsRegistered]

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\PersistentHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\ProgID]
@="lnkfile"

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\shellex]

[HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}\shellex\MayChangeDefaultMenu]

...for any purpose (when link doesn't work even in Explorer).
My Best Wishes,

Eugen
Post Reply