Re: How to "zero" a file after a certain size ?
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 09/15/04
- Next message: Franz Schenk: "Difference in CMD processing 2003 - 2000"
- Previous message: Torgeir Bakken \(MVP\): "Re: scripting reboot into safe mode"
- In reply to: Michael Harris \(MVP\): "Re: How to "zero" a file after a certain size ?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 15:35:51 +0200
Michael Harris (MVP) wrote:
> tsltim wrote:
>
>>I have a file that grows very quickly at times. What command can be
>>used to "zero" the file say when the file reaches 1 GB in size ?
>>Deleting the file would not work because some process is still
>>writing to it.
>
>
> Use FSO to open it ForWriting and close it without writing anything...
>
>
Hi
If the file is already opened for writing I would think this will
fail...
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx
- Next message: Franz Schenk: "Difference in CMD processing 2003 - 2000"
- Previous message: Torgeir Bakken \(MVP\): "Re: scripting reboot into safe mode"
- In reply to: Michael Harris \(MVP\): "Re: How to "zero" a file after a certain size ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|