Sign in to follow this  
Followers 0
willwatters

How to open an application from start menu program

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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

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