An FDISK script from a patron of www.fdisk.com named Ryan: To make FDISK do whatever you want, automagically go through a dry run in FDISK and write down all the options you enter edit a file and call it fdisk.scr in that file, put each option, one per line, and make sure you press return after each one save the file now, when you run fdisk, make sure you run fdisk < fdisk.scr and viola.. you are all fdisked up as an example my batch file looked like this REM ** autoform.bat** echo Run FDISK? choice /c:yn if ERRORLEVEL 2 then goto FORMAT if ERRORLEVEL 1 then goto FDISK :FDISK call fdisk.bat goto END :FORMAT format c: /s/u goto END :END REM **fdisk.bat** fdisk < fdisk.scr