CraigA Posted February 28, 2013 Share Posted February 28, 2013 I have an AutoIt script, jnlp.exe in folder C:\Program Files (x86)\myApp.jnlp.exe downloads a launch.jnlp file to the user's temp dir, and then runs the launch.jnlp to launch that Java WebStart application.If the Java WebStart application is still running, I cannot delete the myApp folder.Windows7 - 1) Delete the jnlp.exe file. The myApp folder is now empty.2) Attempt to delete the myApp folder. Get this error: Folder In Use. The action can't be completed because the folder or a file in it is open in another program.I used a tool called handle shows Java WebStart is associate with the myApp folder:javaw.exe pid: 8308 type: File 1C: C:\Program Files (x86)\myAppIs there a reasonable way to avoid this association?These attempts were no improvement:==================================Local $launchPath = @TempDir & "\launch.jnlp"Run($launchPath)ShellExecute($launchPath) Run(@ComSpec & " /c " & $launchPath, "", "")Had jnlp.exe run an additional script residing in the temp dir, jnlpLauncher.exe, rthat ran the launch.jnlp file that was just downloaded into the temp dir.Any ideas? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 1, 2013 Developers Share Posted March 1, 2013 Did you try to Change the workdir when you shell the java app? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kovacic Posted March 1, 2013 Share Posted March 1, 2013 (edited) Not sure I understand 100% but, when you launch the java app, try Local $launchPath = @TempDir & "\cscript launch.jnlp" That may or may not work, either way, try letting cscript run your java app. Its worth a shot. Edited March 1, 2013 by Kovacic C0d3 is P0etry( ͡° ͜ʖ ͡°) 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