I'm developing a Windows service which monitors different configurations of directories and does some file operations (copies newly created files from source to target directories).
It can have one or more source directories to monitor and it can have one or more target directories to copy the newly available files to.
Ideally, I would like to be able to start the service from the command line with a number of arguments such like this:
$ sc start fileMonitorService from= "/path/to/first/source/dir, /path/to/second/source/dir" to= "/path/to/first/out/dir, /path/to/second/out/dir"
What's a recommended way of organising a program like that?