Formatting a disk under c++ the 2nd

alexos code/url with code just displays the win95 format dialog. i need to make it invisible to the user.
any idea ? fast ??
(the proggy should be ready since 1 day :-(((
LVL 1
sbartokAsked:
Who is Participating?
 
alexoCommented:
OK, assuming NT (Win95 procedure is similar):
Quickview FORMAT.COM to see that it references IFSUTIL.DLL.  IFSUTIL.DLL exports several fuctions to do what you need.  Unfortunately, I wasn't able to find any documentation.

On the other hand, you can invoke FORMAT.COM with appropriate arguments in a hidden window using CreateProcess().  In order for it to be non-interractive, you'll have to redirect standard I/O and supply user prompts in pipes or files.

It is possible to do a low-level format using DeviceIoControl() but it only allows you to format tracks, not create a file system.

References:
  http://www.dejanews.com/getdoc.xp?AN=313532978
0
 
sbartokAuthor Commented:
Edited text of question
0
 
nietodCommented:
Alexo is in Israel.  That's 7 hours off from East coast time.  You are going to have at least a few hours wait.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
sbartokAuthor Commented:
hmmm, east coast... israel... doesn't apply to me, i live in germany ;-)
0
 
nietodCommented:
Smaller time difference.  Same wait.
0
 
alexoCommented:
It all boils down to different waking hours.
0
 
alexoCommented:
And the autograder hits again!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.