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
  • 159,224
  • 26
  • 237
  • 393
qodeninja
  • 10,562
  • 29
  • 95
  • 149

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
  • 84,168
  • 47
  • 173
  • 207