oShell = CREATEOBJ('Wscript.Shell') DECLARE Sleep IN WIN32API INTEGER dw_ms oShell.Run('FORMAT A: /Q /U') =Sleep(2000) && wait 2 secs for the format app to start oShell.AppActivate('\format.com') && select the format app based on the end of the title oShell.SendKeys('{ENTER}') && Press any key when floppy in drive =Sleep(500) oShell.AppActivate('\format.com') && reactivate oShell.SendKeys('{Enter}{Enter}') && Volume Label / Format Another =Sleep(10000) && give it 10 seconds to work oShell.AppActivate('\format.com') oShell.SendKeys('^C') && Ctrl-C to close sessionFormat dialogs are not uniform across OS versions, and times depend on the hardware, but it's a start point. AppActivate will use a number of ways to find the right app based on the title text - you can see a description in the VFUG article that George Tasker and I wrote on the Wscript.Shell object. FWIW, the exact code above works on my Win2K box with no trouble as shown, except that it doesn't take a full 10 seconds to finish a QuickFormat of a floppy.