Solved

Formatting a disk under c++ the 2nd

Posted on 1998-06-13
7
204 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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.

706 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

20 Experts available now in Live!

Get 1:1 Help Now