Can you move, rename or replace an open file with current Windows? That's possibly one of the reasons why it's so hard to apply patches without rebooting a Windows box. And an endless annoyance when using a Windows desktop.
I still pipe logs to a separate process that checks if the logfile is deleted and reopens/creates the logfile, its just easier.
This is actually a feature, because it makes secure temp files possible.
> I still pipe logs to a separate process that ...
Note that logging is usually done in a separate process anyway, using the Syslog facility.
cat /dev/null > /path/to/logfile
Your command will make /path/to/logfile fill up all available space on the disk. To truncate that file, which is probably what you wanted to do, you should
`echo > /path/to/logfile`
It's insane.