Solved

Formatting a disk under c++ the 2nd

Posted on 1998-06-13
7
207 Views
Last Modified: 2010-04-01
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 :-(((
0
Comment
Question by:sbartok
  • 3
  • 2
  • 2
7 Comments
 
LVL 1

Author Comment

by:sbartok
ID: 1165832
Edited text of question
0
 
LVL 22

Expert Comment

by:nietod
ID: 1165833
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
 
LVL 1

Author Comment

by:sbartok
ID: 1165834
hmmm, east coast... israel... doesn't apply to me, i live in germany ;-)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 11

Accepted Solution

by:
alexo earned 0 total points
ID: 1165835
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
 
LVL 22

Expert Comment

by:nietod
ID: 1165836
Smaller time difference.  Same wait.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1165837
It all boils down to different waking hours.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1165838
And the autograder hits again!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now