Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Formatting a disk under c++ the 2nd

Posted on 1998-06-13
7
Medium Priority
?
216 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

963 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