willwatters Posted May 11, 2005 Posted May 11, 2005 I ran the below code to run/open an application from the following path but it didn't work successfully - D:\documents and settings\All Users\Start Menu\Programs\Mitratech\Claim Litigation Mailer Utility.lnk: ;Launch Claim Litigation Mailer Utility from start menu > programs $details = FileGetShortcut(@StartMenuCommonDir & "\Programs\Mitratech\Claim Litigation Mailer Utility.lnk") $mycommandline = $details[0]& " " & $details[2] run ($mycommandline,"",@SW_MAXIMIZE) Sleep(2000) I would appreciate your help in correcting this code. Thanks.
steveR Posted May 11, 2005 Posted May 11, 2005 I haven't been able to get any errors. What kind of error message are you getting? AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
jdickens Posted May 11, 2005 Posted May 11, 2005 Does it work with simply Run and the hardcoded path of the executable? That is, rule out the FileGetShortcut fn? I might be curious to see if @StartMenuCommonDir ends with a \ already. J If I am too verbose, just say so. You don't need to run on and on.
MSLx Fanboy Posted May 11, 2005 Posted May 11, 2005 Your curiosity seems to spread. Just checked: 'C:\Documents and Settings\All Users\Start Menu'. It's good to see that our nice devs are consistent with that 'no trailing slash' thing. Makes it very simple...too bad I always forget that and error myself out with it Take a look at all my error logs some times, most of them are I-D-10-T errors Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
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