Source language: Translate to:

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

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

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

Postby jimf » Wed Mar 06, 2002 12:12 pm

I would like to format A: from within NB4 without seeing the 'dosbox' open.  Have you any ideas which may work?
jimf
 

Format A:

Postby NeoSoft Support » Wed Mar 06, 2002 1:17 pm

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
NeoSoft Support
 

Format A:

Postby jimf » Thu Mar 07, 2002 8:42 am

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
jimf
 


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest