- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Re: Set up a .BAT file as a Windows Service?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2008 12:29 PM
тАО02-19-2008 12:29 PM
I would like to have some method of running a .BAT file so as to not require an interactive session. I am wondering if it is possible to set up a .BAT file as a Windows Service? Then I could have it automatically start once the system is up, not to mention automatically REstart if and when the executable stops for any reason.
I would also prefer a solution that does not require any third-party (commercial) software.
Other ideas are welcome.
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2008 06:00 PM
тАО02-19-2008 06:00 PM
Re: Set up a .BAT file as a Windows Service?
You can get software to convert batch files to services - google for bat2exe
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2008 10:46 AM
тАО02-20-2008 10:46 AM
Re: Set up a .BAT file as a Windows Service?
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 01:12 AM
тАО02-21-2008 01:12 AM
SolutionYou can setup the batch file as a windows service. There is a tool available in windows resource kit with a graphical interface which will make it easier for you to configure the service - srvinstw.exe. This is a microsoft tool and you could either download it or find it in windows cd.
Cheers
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 01:20 AM
тАО02-21-2008 01:20 AM
Re: Set up a .BAT file as a Windows Service?
srvinstw program is attached as zip herewith in case you dont have the resource kit with you.
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 10:25 AM
тАО02-21-2008 10:25 AM
Re: Set up a .BAT file as a Windows Service?
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company