It will still work if you just stop and start the service. When the service is restarted, it will create a new file with a different name. The old file will not be locked.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor