Page 1 of 1

Format A: - Elegant way to format a floppy from within NB4

PostPosted: Wed Mar 06, 2002 12:12 pm
by jimf
I would like to format A: from within NB4 without seeing the 'dosbox' open.  Have you any ideas which may work?

Format A:

PostPosted: Wed Mar 06, 2002 1:17 pm
by NeoSoft Support
Hi Jimf,

I found this in Jim Brammer's RunX utilty:

Run "RUNDLL32.EXE" "SHELL32.DLL,SHFormatDrive" "Normal"

Check out RunX here:

http://www.neosoftware.com/cgi-bin/ikon ... =7&topic=3

Format A:

PostPosted: Thu Mar 07, 2002 8:42 am
by jimf
thanks
the ms dll works great.  one minor change for my pub was to replace 'normal' with ' ' so instead of
Run "RUNDLL32.EXE" "SHELL32.DLL,SHFormatDrive" "Normal"
it now looks like this
Run "RUNDLL32.EXE" "SHELL32.DLL,SHFormatDrive" "Wait+RunOnce"

this allows me to imbed the code in the pub and have the pub wait until the format is finished.

one thing is missing though,  it defaults to creating a system disk.  while this is not a big issue, it would be nice to change that default.

does anyone have any ideas on how to change the defaults?

thanks

jimf