Search found 2 matches
- 14 Jan 2010 11:02
- Forum: DOS Batch Forum
- Topic: Clear Contents of a Log File using Batch Script
- Replies: 3
- Views: 8427
Sweener, Thanks for replying what I am looking for is just log rolling.. since my log wouldnt roll by itself, I want to write a batch to copy the contents to another location and clear the original log to prevent it from growing huge. I am sure there is a way to do this without killing the PID. I ha...
- 13 Jan 2010 16:11
- Forum: DOS Batch Forum
- Topic: Clear Contents of a Log File using Batch Script
- Replies: 3
- Views: 8427
Clear Contents of a Log File using Batch Script
Hello, I am trying to clear the contents of a log file app1.log which is being used by a server. I am using windows 2003. Following are the commands I tried so far. command: echo on>app1.log output: The process cannot access the file because it is being used by another process command:type nul>app1....