Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Example configuration file
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - Example configuration file
Who Is Online?
We have 35 guests online
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services - Example configuration file E-mail
User Rating: / 0
PoorBest 
Free Software - Command line utilities
Written by Thomas   
Thursday, 05 February 2009 17:22
Article Index
ServiceExe - Install and run applications as Windows services
License
Installation
The configuration file
Example configuration file
Configuration: The [General] section
Configuration: Process task sections
Embedded environment variables
Command line parameters
User credentials
Process logging
Common pitfalls
All Pages



Open ServiceExeTest.ini
 

ServiceExeTest.ini:

; ***************************************************************************
;
; Example configuration file for ServiceExe.exe
;
; See http://www.dateiliste.com for more details.
;
; ***************************************************************************
 
[General]
 
; The service's name to display.
;  The service name (not the display name) is the name of the ini file.
ServiceDisplayName=ServiceExe Test Service
 
; The service's description.
ServiceDescription=This is our new service
 
; Time in seconds to wait before the processes are
;  started. Default value is 0 seconds.
StartUpPause=1
 
; Time in seconds to wait between each process to
;  start. Default value is 0 seconds.
CreateProcessPause=1
 
; Path to the log files. If this is not given, the application's
;  (executable file's) path is assumed. Note that this will not work
;  without changing the permissions accordingly. Environment variables
;  can be embedded like (example: LogPath=%APPDATA%\MyService\Logs).
LogPath=Logs
 
; Lists all the sections of the processes, separated by blanks.
; ServiceProcesses=Process1 Process2 ...
ServiceProcesses=Process1
 
[Process1]
 
; The full path and file name of the application to run as a service.
;  Environment variables can be embedded
; (example: ApplicationName=%ComSpec%).
ApplicationName=C:\Program files\MyApplication\MyApplication.exe
 
; The command line parameters for the application to run as a service.
;  Environment variables can be embedded. The default is an empty
;  string.
CommandLine=
 
; The working directory for the applicaion when run as a service. The
;  default is the directory where ServiceExe.exe resides. Environmnet
;  variables can be embedded.
CurrentDirectory=
 
Open ServiceExeTest.ini


To test the file, invoke ServiceExe with the following parameters:

ServiceExe.exe -console ServiceExeTest.ini

 

Download ServiceExe.zip (0.10 MiB = 105.8 KiB = 108,365 bytes)

 



Last Updated on Thursday, 15 October 2009 15:07
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)