Create a binary file using a Microsoft utility...

  • Thread starter Thread starter silly
  • Start date Start date
S

silly

Create a binary file using a Microsoft utility...

Hello,

Can someone please help, some time back, I came across a command which was
bundled with some
Microsoft SDK or resource kit or something and this command generated a file
of fixed length full of binary zeros.

I can't find it now which is bugging me, I thought it was genfch but I cant
find that anywhere.

Any ideas ?

Thanks in advance.

Hal
 
Thanks Gill & Dean, it was fsutil which is not remotely similar in name to
genfch - says a lot about my memory!!!!

The syntax would be: fsutil file createnew C:\testfile.txt 1000

Just as an aside, I saw that you can do this:
fsutil file setzerodata offset=100 length=150 C:\Temp\sample.txt
which looks like it might be useful to me one day.... off topic but, I
wonder if there is a linux equivalent command line utility to zap a file
somewhere in the middle?

Thanks again
Hal.
 
silly said:
Just as an aside, I saw that you can do this:
fsutil file setzerodata offset=100 length=150 C:\Temp\sample.txt
which looks like it might be useful to me one day.... off topic but, I
wonder if there is a linux equivalent command line utility to zap a file
somewhere in the middle?

I think something like this:

dd bs=1 if=/dev/zero of=sample.txt seek=100 count=150 conv=notrunc

Is FSUTIL.EXE from XP safe to use on a 2k system?
 
Back
Top