willwatters Posted July 11, 2005 Posted July 11, 2005 I'm trying to open an application from D:\documents and settings\All Users\Start Menu\Programs\Mitratech\Claim Litigation Mailer Utility.lnk using the following code, but it does not work. $details = FileGetShortcut(@ProgramsCommonDir & "\Mitratech\Claim Litigation Mailer Utility.lnk") $mycommandline = $details[0]& " " & $details[2] run ($mycommandline,"",@SW_MAXIMIZE) Will you please amend this code to make this work. Thanks.
DarkNecromancer Posted July 11, 2005 Posted July 11, 2005 what is the error that you get??? i try to do it and i get an invalid subscript. "subscript used with non-Array variable" hmm dont know about this one. I get that error with the example code.
willwatters Posted July 11, 2005 Author Posted July 11, 2005 I do not get an error, its just that nothing happens. Is this line of code correct: $mycommandline = $details[0]& " " & $details[2] I used it for desktops and it works ok.
GaryFrost Posted July 11, 2005 Posted July 11, 2005 I tested it on WinZip link, worked fine. Try MsgBox(0,"test",$mycommandline) to see what is in $mycommandline SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
willwatters Posted July 11, 2005 Author Posted July 11, 2005 i got the following: C:\WINNT\Installer\{6F2FCC69-BECB-4A7A-8E48-F706094944FF}\Icon6F2FCC69.exe I also got something similar for winzip. Any other suggestions please
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