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...

First, you will want to get familiar with Win32. You can and should use the GetOSName function to find out what version of Windows your program is running on. (demerphq pointed this out to me back in June of this year.) You can use the MsgBox function to create message boxes.

You can use Win32API::File to format your floppy disks. The DeviceIoControl function will allow you to format a drive. This makes it much easier than doing it with Win32::API or Inline::C.

You are probably going to want to use File::Copy to copy the files to the floppy disk. But since you will be using Win32API::File, you could use its CopyFile function if you wanted.

I wish you the best of luck if you decide to take this route.

Updated: fixed some wordos...


In reply to Re: BootDisk by Mr. Muskrat
in thread BootDisk by cored

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.