Running a batch file as win 32 application

  • sarv0404
  • Born
  • Born
  • sarv0404
  • Posts: 3

Post 3+ Months Ago

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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • sarv0404
  • Born
  • Born
  • sarv0404
  • Posts: 3

Post 3+ Months Ago

More explanation:

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.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Just save your batch file to the "All Users" Startup folder
C:\Documents and Settings\All Users\Start Menu\Programs\Startup

It will run automatically when any user logs in. If you don't want it for All Users, put it in the startup folder of the user you want it to run in.
  • sarv0404
  • Born
  • Born
  • sarv0404
  • Posts: 3

Post 3+ Months Ago

Thanks a lot. It did work :-) :D

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 81 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.