Sign in to follow this  
Followers 0
cubax

shortcut not working

2 posts in this topic

That is a very strange thing.

I can create shortcuts to whataver application with no problem... When I do it on a certain executable file i got a non working shortcut.

When i double click on it I got a dialog box wich title is:

h_exec

And the text is

Error #2

This is the part of code I use to create it:

FileCreateShortcut ($dest & '\voltimum.exe', @DesktopDir & "\Guide in PDF.lnk","","","",$dest & '\vlt.ico')

If I do the same linking to other files, it works. Not with this one!!!

Does anybody have an idea?

THX!!! :)

Share this post


Link to post
Share on other sites



That is a very strange thing.

I can create shortcuts to whataver application with no problem... When I do it on a certain executable file i got a non working shortcut.

When i double click on it I got a dialog box wich title is:

h_exec

And the text is

Error #2

This is the part of code I use to create it:

FileCreateShortcut ($dest & '\voltimum.exe', @DesktopDir & "\Guide in PDF.lnk","","","",$dest & '\vlt.ico')

If I do the same linking to other files, it works. Not with this one!!!

Does anybody have an idea?

THX!!! :)

I suspect the shortcut works fine, but the executable needs more information.

Without knowing anything about voltimum.exe, my guess would be you should try providing a working directory:

FileCreateShortcut ($dest & '\voltimum.exe', @DesktopDir & "\Guide in PDF.lnk",$dest,"","",$dest & '\vlt.ico')

You might also check to see if there are any parameters for the exe file to get it to do what you want. "h_exec" / "Error #2" sounds like a missing parameter.

Good luck with that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0