cored has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, i was wondering how to make a perl script that makes a boot disk for any windows i mean for windows 9x or windows nt, i know how to do it manually in windows 9x the files that handles this are in c:\windows\command\ebd in nt only i have to put in the disk ntldr boot.ini and ntdetect.com, but i dont want to use system to make that posible is there a module or something. thx

Replies are listed 'Best First'.
Re: BootDisk
by diotalevi (Canon) on Nov 14, 2002 at 14:52 UTC

    Oh and I was hoping you were writing a bootloader... Oh well. This is so trivial it can be done with a batch script. On your Win9x machines you "sys" the floppy and then just copy over the right files. It's hard to know what you mean by a boot disk for NT. There's the command-line boot floppies available from http://www.sysinternals.com and then there's the recovery floppies. Why don't you just invoke the proper programs and be done with it? It's less work *and* more proper.

    __SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;
Re: BootDisk
by Mr. Muskrat (Canon) on Nov 14, 2002 at 15:39 UTC

    diotalevi is correct. Doing this with Perl is overkill. However, it is possible. I've never done it but it sure sounds like fun. If you still want to do it with Perl and Perl modules, then...

    Updated: fixed some wordos...