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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.