lnk gives Error executing program

English support forum

Moderators: white, Hacker, petermad, Stefan2

DavidPront
Junior Member
Junior Member
Posts: 3
Joined: 2003-12-09, 20:51 UTC

lnk gives Error executing program

Post by *DavidPront »

When i double click a lnk file (shortcut) i get an error box saying: Error executing program. This happens on my windows server 2003 installation, but not on a windows xp installation.

Does somebody have the same problem or knows how to solve this?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

When i double click a lnk file
Could you give some more details ?

What kind of link is it (where does it point to) ?
Is your login administrator or simple user ?
#5767 Personal license
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

I've tried the same thing.
Let me guess there's no problem running the lnk file in explorer, right?
I think this is some kind of a bug in the way TotalCmd handles shortcut files, the only solution I know is to create another shortcut (Ctrl+Shift+F5).
Of all the planets I've been to, this one is my favorite.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Re: lnk gives Error executing program

Post by *Boofo »

DavidPront wrote:When i double click a lnk file (shortcut) i get an error box saying: Error executing program. This happens on my windows server 2003 installation, but not on a windows xp installation.

Does somebody have the same problem or knows how to solve this?
I get the same error in Win XP Pro. How did you get around it in XP?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Where does the non-working lnk file point to? TC always checks a double clicked lnk file first: If it contains a folder name, TC tries to open that folder internally, otherwise TC uses ShellExecuteEx to start the link.

Btw, could you send me such a non-functioning link by e-mail, zipped? You can find my e-mail address on www.ghisler.com (support section).
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Christian, I've got 2 coming to you. 1 was made in TC (with Ctrl+Shift+F5) and one was made in XP Pro. When I click on either one in Explorer, they work. In TC, I get the error when clicking on either link.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 09-12-2003 22:56:22 +0000 DavidPront wrote:

D> When i double click a lnk file (shortcut) i get an error
D> box saying: Error executing program.


Delete "IsShortcut" field value in "HKEY_CLASSES_ROOT\lnkfile" and "HKEY_CLASSES_ROOT\Piffile".
You can use Registry plugin by Vitaliy Knyazev for this.[/face]
Last edited by Black Dog on 2003-12-12, 00:53 UTC, edited 1 time in total.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

On Windows XP Pro that will give the Error when clicking on the link. I had to add it back in the registry to stop the Error.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Oups! Values...

Post by *Clo »

Black Dog wrote:[face=courier]On 09-12-2003 22:56:22 +0000 DavidPront wrote:

D> When i double click a lnk file (shortcut) i get an error
D> box saying: Error executing program.


Delete "IsShortcut" field value in "HKEY_CLASSES_ROOT\lnkfile" and "HKEY_CLASSES_ROOT\Piffile".
You can use Registry plugin by Vitaliy Knyazev for this.[/face]
Hi!

:D I use this (deleting both these Registry values) to remove the irritating LNK symbols which spoil my pretty icons on the Desktop...
Note: I delete the values! No problem then...
Edit: "values", thank you Black Dog!
>>> Mr. Ch. Ghisler: I always suppress these values, and all works normally about shortcuts, either in Win 98Se & XP-Pro than in TC... But I don't click *.lnk files, Why? It's more logical to click on the EXE! :?:
:wink: Friendly,
Claude
Clo
Last edited by Clo on 2003-12-19, 01:21 UTC, edited 3 times in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 12-12-2003 07:22:05 +0000 Clo wrote:

C> Note: I delete the whole keys, not only the values!

"HKEY_CLASSES_ROOT\lnkfile" is the KEY, "IsShortcut" is a VALUE.[/face]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

"IsShortcut" MUST be present, otherwise the ShellExecuteEx function cannot run lnk files! I have no idea what function Explorer uses to run links, but apparently not ShellExecuteEx. :(
Author of Total Commander
https://www.ghisler.com
rellek
Member
Member
Posts: 175
Joined: 2003-10-15, 14:07 UTC
Contact:

Post by *rellek »

ghisler(Author) wrote:"IsShortcut" MUST be present, otherwise the ShellExecuteEx function cannot run lnk files! I have no idea what function Explorer uses to run links, but apparently not ShellExecuteEx. :(
This is wrong!
I also deleted this key (to kill these stupid arrows) and at my system it works wonderfully ;)

My System:
Windows XP Pro SP1 and much pre SP2-Patches ...
#167372 Personal Licence
Windows 7 Professional + alle Hotfixes

www.rellek.org
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

rellek wrote:
ghisler(Author) wrote:"IsShortcut" MUST be present, otherwise the ShellExecuteEx function cannot run lnk files! I have no idea what function Explorer uses to run links, but apparently not ShellExecuteEx. :(
This is wrong!
I also deleted this key (to kill these stupid arrows) and at my system it works wonderfully ;)

My System:
Windows XP Pro SP1 and much pre SP2-Patches ...
What exactly did you delete? When I tried that it wouldn't work when clicking on lnk files. It just gave me the error message. I am also using XP Pro with all of the update patches.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe Microsoft fixed it in one of the Pre-SP1 patches?
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

ghisler(Author) wrote:Maybe Microsoft fixed it in one of the Pre-SP1 patches?
If they did, then they broke it again with one of the newer updates. I have all of the updates up to now. ;)
Post Reply