|
Free Software -
Command line utilities
|
|
Written by Thomas
|
|
Thursday, 05 February 2009 17:22 |
|
Page 5 of 12
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 |
to post comments.