I'm creating a service using the sc.exe command in windows xp
I want to save the STDOUT messages to svc.datetime.log
How do I do this?
I'm using a batch file as a wrapper to an executable. No heavy lifting or .NET
I'm creating a service using the sc.exe command in windows xp
I want to save the STDOUT messages to svc.datetime.log
How do I do this?
I'm using a batch file as a wrapper to an executable. No heavy lifting or .NET
I would recommend using a logging framework like log4net or EntLib Logging Application Block to do this (assuming you're using .NET). There are a lot of pitfalls that you can run into if you're writing you're own, and existing frameworks do a good job.