extract dos image from windows ...

Share your advanced PureBasic knowledge/code with the community.
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

extract dos image from windows ...

Post 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)
["1:0>1"]
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

That diskcopy.dll is kinda neat. Thanks for posting this. :)
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

:D love it!
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

:?:

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

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4791
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Post by Azul »

Anything similar for Windows 2000 ? :)

update: still doable with Windows 8.1. :P
Post Reply