Click to See Complete Forum and Search --> : API for running harddrive formatting and running an arbitrary command


lenaserg
May 16th, 2006, 11:00 PM
A couple of questions:

1. What is the API name for running an arbitrary Dos command in win32/MFC ? Much like the system() system call in Unix.

2. What is the API name for harddrive formatting ?

Pls reply to lenaserg AT hotmail.com

golanshahar
May 17th, 2006, 01:48 AM
Maybe ::SHFormatDrive() (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shformatdrive.asp) can help you.

Cheers