JeremyE Posted January 8, 2011 Share Posted January 8, 2011 I'm sure this has been asked before, but I couldn't find anything under the search, so I'm posting it as a new topic. How do I use AutoIt to execute a .jar file? I have one that has a batch file, but you can't pin a batch file to the Windows start menu, so I have to either navigate the menus or else (as in this case) navigate to the actual folder where the program is installed in order to run it. It would be nice to use an AutoIt script that uses all the command-line parameters in order to not use the batch file anymore. Thanks for everything, and definitely thanks for making AutoIt, I've found it very useful. Link to comment Share on other sites More sharing options...
Mat Posted January 8, 2011 Share Posted January 8, 2011 What's in the batch file would be the best place to start I imagine it would be a simple conversion. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 8, 2011 Share Posted January 8, 2011 java -jar myfile.jar Link to comment Share on other sites More sharing options...
ProgAndy Posted January 8, 2011 Share Posted January 8, 2011 Then that's the command you have to use in Run. An alternative would be to create a shortcut to java.exe with the parameters -jar myfile.jar ; Do not forget to set the correct working directory. *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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