Results 1 to 3 of 3

Thread: formatting floppies - a faster way??

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    Hi.

    I recently came across a good floppy formatting code at Planetsourcecode that uses this API:

    Private Declare Function SHFormatDrive Lib "shell32" _
    (ByVal hwnd As Long, ByVal Drive As Long, ByVal fmtID As Long, _
    ByVal options As Long) As Long



    I am wondering if there is a way to make the format run without having to click through the Format Dialogue Box.

    In other words, no clicking start to begin the format, no clicking 'close' when the format is finished.

    Also, does anybody know which formatID will make the dialogue open with the 'Display summary when finished' NOT checked?


    thanks all.

    Wengang
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    you might consider searching msdn.com for the API options

  3. #3
    Guest
    How about using DOS?

    Code:
    Shell "Format A:", vbNormalFocus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width