flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to write Zeros to file very fast? |
Author |
|
sylwek32 25 Oct 2006, 10:25
How can i write zeros to a file/disk very fast?
i need it to make a "Low level type format" |
|||
25 Oct 2006, 10:25 |
|
Goplat 25 Oct 2006, 16:36
Writing zeros is not a low level format. Low level formatting involves placing the sectors and tracks, and is only done on floppy disks.
|
|||
25 Oct 2006, 16:36 |
|
f0dder 25 Oct 2006, 23:17
Filter: those tools also just write zeroes - as a end-user, you haven't been able to do a true low-level format for years.
|
|||
25 Oct 2006, 23:17 |
|
MAD_DËMON 04 Nov 2006, 15:43
If you want to extend the file size filling it with zeroes then I think that SetEndOfFile should be the answer http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/setfilevaliddata.asp
|
|||
04 Nov 2006, 15:43 |
|
f0dder 05 Nov 2006, 14:57
SetEndOfFile is nice if you just want to extend a file - it's almost a zero-overhead operation on NTFS, and makes sure the file is as little fragmented as possible. Takes a while on FAT filesystems though.
|
|||
05 Nov 2006, 14:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.