[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to convert a btach (.bat) file to a service or .exe

Posted on 2005-05-04
7
Medium Priority
?
2,144 Views
Last Modified: 2010-04-18
Hi there,
     Can anyone tell me how to convert a .bat file to a service that will run under windows or to a .exe so that I can run as scheduled dervice. I perfer the service route if it can be done.


Thanks
0
Comment
Question by:mikeeubank
7 Comments
 
LVL 41

Expert Comment

by:stevenlewis
ID: 13925985
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 13925991
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 13926017
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 85

Expert Comment

by:oBdA
ID: 13926397
You can schedule a batch file directly without any problem. Depending on what you're doing in that batch, I wouldn't trust a batch compiler any further than you can throw it.
0
 
LVL 3

Expert Comment

by:miroofi75
ID: 13927130
to run a batch file as scheduled task do as follows:

Start - programs - accessories - system tools - scheduled task - (a windows will open) - select add task - a wizard is open - click next - Click brows - select your batch file - and select scheduled timing when you want to run that task.

hope it helps,

regards,


Imran
0
 
LVL 1

Author Comment

by:mikeeubank
ID: 13927229
I have been trying to run the .exe I created from the .bat file as a servcie using the following syntax...
C:\Program Files\Resource Kit\Instsrv.exe cqm_server_internal C:\Program Files\Resource Kit\Srvany.exe

where cqm_server_internal is the name of the .exe I am trying to run as a serve...when I try to run this from a CMD prompt I get the error:
C:\program is not a command or service blah blah blah... This is straight from technet..any help would be appreciated!
0
 
LVL 41

Accepted Solution

by:
stevenlewis earned 2000 total points
ID: 13927325
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Learn about cloud computing and its benefits for small business owners.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question