Jump to content

Running a batch file as win 32 application


sarvagna
 Share

Recommended Posts

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

Link to comment
Share on other sites

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 hellowWorld

This is all i m doing from inside the script.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy