extract dos image from windows ...
Posted: Tue Feb 03, 2009 1:20 pm
no floppy to create/format boot disc ?
extract msdos.ima (for winimage or other) from windows (diskcopy.dll):
simple with pb
for xp/vista/windows7 x86/x64 
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)
