Search found 2 matches

by Shahar5
20 May 2021 02:38
Forum: DOS Batch Forum
Topic: Need help clearing a log while it is being written to (CMD)
Replies: 4
Views: 4035

Re: Need help clearing a log while it is being written to (CMD)

You're likely out of luck unless you can change the behavior of how the process which writes firstlog.log opens the file, or if you terminate this process. Windows allows a process to open a file in different modes. This does not only affect the own access of the file, but also the access shared wi...
by Shahar5
19 May 2021 03:36
Forum: DOS Batch Forum
Topic: Need help clearing a log while it is being written to (CMD)
Replies: 4
Views: 4035

Need help clearing a log while it is being written to (CMD)

Hello DosTips Community I need a script that transfers a logs content to another and then clears that first log, while the first log is also being filled with logs I hope I didn't confuse you what I thought would work is 1. cd "logs location" 2. type firstlog.log >> otherlog.log 3. del /F firstlog.l...