News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

floppy IMG file backup.

Started by zcoder, September 24, 2008, 04:18:49 AM

Previous topic - Next topic

zcoder

Here is a program I made by mistake, and I thought I would share the code.
The mistake I made was having my filename and path, messed up.(mangled)

This did not open a file on a floppy, But what it did do was open the
floppy drive as a device, allowing me to read and write to each sector
on the drive. So I stopped writing the program I was working on and
played with this and found out I could read floppy images to disk files
and back to floppies. this was good for making boot images. it also worked
on Cd's to make CD IMG files.

So I thought some of you might be interested in a program that could
make floppy IMG files and restore them onto other floppies.  The source
is included.

I also would like to know from others to test this out if it works, and if it don'y
could you let me know your OS? I have XP Home, and I am not sure if this
works accros other OS's

Zcoder....


[attachment deleted by admin]
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

ragdog

Nice source

Here is a other source for read/write img file to floppy


I canot test your tool ,i have no floppy-drive :bg


[attachment deleted by admin]

BlackVortex

Quote from: ragdog on September 24, 2008, 07:07:01 AM
Nice source

Here is a other source for read/write img file to floppy


I canot test your tool ,i have no floppy-drive :bg

You don't need to have the hardware to do it, you can use emulation, for example VMWARE Workstation can mount disk images in its virtual floppy drive   :wink

ecube

Nice clean source, shame you're using another assembler :P seems everyone on masm32 using everything but masm ;) code seems to work fine with vista home.

ragdog



i dont install 100te apps for test a tool ! :bg


Vortex

Thanks for the floppy image tool.

Tedd

You can access any drive by opening "\\.\X:" (where X is the drive letter) with CreateFile and then treat it as a normal file - just remember to open with "FILE_SHARE_READ or FILE_SHARE_WRITE"
Works for all version since windows 95 (though I think there were some limits on 95/98)

See also: "\\.\PHYSICALDRIVE0" for the first hard-disk (starting from the MBR, rather than the first partition.)
No snowflake in an avalanche feels responsible.

PBrennick

I sure would be careful, though!  :U

-- Paul
The GeneSys Project is available from:
The Repository or My crappy website