Page 1 of 1

extract dos image from windows ...

Posted: Tue Feb 03, 2009 1:20 pm
by bingo
no floppy to create/format boot disc ?

extract msdos.ima (for winimage or other) from windows (diskcopy.dll):

simple with pb :)

Code: Select all

hlib.i = LoadLibrary_("diskcopy.dll")

hres.i = FindResource_(hlib,1,"BINFILE")

If CreateFile(0,"c:\tmp\msdos.ima") ;<- your dos image , use it with winimage !
WriteData(0,LoadResource_(hlib,hres),SizeofResource_(hlib,hres))
CloseFile(0)
EndIf

FreeResource_(hres)
FreeLibrary_(hlib)
for xp/vista/windows7 x86/x64 8)

Posted: Tue Feb 03, 2009 7:55 pm
by SFSxOI
That diskcopy.dll is kinda neat. Thanks for posting this. :)

Posted: Wed Feb 04, 2009 1:54 am
by djes
:D love it!

Posted: Wed Feb 04, 2009 1:59 am
by pdwyer
:?:

I don't really understand this, could you explain it a bit more

Posted: Wed Feb 04, 2009 4:10 am
by Fangbeast
If you don't have a rescue boot disc, you can extract the boot image from the one provided in "diskcopy.dll: in an installed Windows system. It's an MS-DOS boot disk.

Posted: Mon Feb 09, 2009 5:07 pm
by Azul
Anything similar for Windows 2000 ? :)

update: still doable with Windows 8.1. :P