sarvagna Posted February 16, 2009 Report Share Posted February 16, 2009 I have a batch file. I want to run it as a win32 application. Please tell me if there is any script/mechanism to do it. I also want that whenever I restart my windows, this specific win32 application should start automatically. Quote Link to comment Share on other sites More sharing options...
sarvagna Posted February 16, 2009 Author Report Share Posted February 16, 2009 I have a batch file. I want to run it as a win32 application. Please tell me if there is any script/mechanism to do it. I also want that whenever I restart my windows, this specific win32 application should start automatically.By win32 application I mean that it should run as windows service. I am new to windows, so sorry if I m not clear with terminology Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted February 16, 2009 Report Share Posted February 16, 2009 A batch file is a script, not an application, so you cannot run it as an application or as a service. Quote Link to comment Share on other sites More sharing options...
sarvagna Posted February 16, 2009 Author Report Share Posted February 16, 2009 Thanks a lot for the reply.I actually run a java program from inside the script. Is there a way that i can write any win32 application, which in-turn runs a java program.All I need to do from inside the application is running a simple java command like- java -cp hellowWorldThis is all i m doing from inside the script. Quote Link to comment Share on other sites More sharing options...
catgate Posted February 16, 2009 Report Share Posted February 16, 2009 Have you looked at adding a line (or two) to Autoexec.bat ? Quote Link to comment Share on other sites More sharing options...
sarvagna Posted February 16, 2009 Author Report Share Posted February 16, 2009 How can I edit it.. Quote Link to comment Share on other sites More sharing options...
catgate Posted February 16, 2009 Report Share Posted February 16, 2009 Well it is long time since I tinkered with autoexec.bat. but it used to be a simple matter of a text editor. But, bare in mind that you should make a copy of your autoexec.bat as it is now, renamed to something else (e,g, autoexec.bax) before you experiment, so that you have a lifeline. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted February 17, 2009 Report Share Posted February 17, 2009 Is autoexec.bat actually still used...?To original poster: can't you just run your Java program directly (as a Win32 application, or even as a service)?If not (for whatever reason), just write an outer Java program that calls your Java program. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.