cubax Posted September 8, 2006 Share Posted September 8, 2006 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!!! Link to comment Share on other sites More sharing options...
sohfeyr Posted September 9, 2006 Share Posted September 9, 2006 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_execAnd the text isError #2This 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. Mine:Time Functions - Manipulate the system clock! | WinControlList (WinGetClassList++) | .Net Setup Wrapper, Detect or install .Net | Writing and using a VB .NET COM object in AutoItNot mine, but highly recommended:AutoItTreeViewExtension plugin | Menu code | Callback helper dll | Auto3Lib - Control the uncontrollable | Creating COM objects in AutoIt | Using .Net framework classes in AutoIt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now