buxtonicer1
Programmer
Has anyone ever used a windows service to run commands like for example DOS commands. I want to write 4 separate services that can been used to start and stop particular processes running on the same machine.
At the moment I have to do this using DOS commands at the command prompt.
E.G.
psadmin -p start -d psdmo (This is an example of the command.
Any suggestions would be great ?
Or even if I could put the commands in a batch file and call the batch file from windows service that would be useful as well.
At the moment I have to do this using DOS commands at the command prompt.
E.G.
psadmin -p start -d psdmo (This is an example of the command.
Any suggestions would be great ?
Or even if I could put the commands in a batch file and call the batch file from windows service that would be useful as well.