Solved

Formatting a disk under c++ the 2nd

Posted on 1998-06-13
7
212 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unresolved External Symbols 3 109
Using Diagnostic tools in VS2015: Unresoved allocations 19 109
Copy output image from TWindowsMediaPlayer 6 48
Android development question 2 55
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 clear a vector as well as how to detect empty vectors in C++.

821 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