0

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

John Saunders
  • 160,644
  • 26
  • 247
  • 397
qodeninja
  • 10,946
  • 30
  • 98
  • 152

1 Answers1

0

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.

Andy White
  • 86,444
  • 48
  • 176
  • 211