943,441 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 4258
  • C RSS
May 13th, 2004
0

Re: Clearing the screen

Expand Post »
I tried to desigen program that format partition from the HDD. like D:... then
i right this code
  1. #include<process.h>
  2. int main()
  3. {
  4. system("d:");
  5. system("format d: /q");
  6. system("y");
  7. return 0;
  8. }
but it comes to ( " all data on non_removalbe disk
driver d:will be lost !
proceed with format (Y/N)?
and stop .... howver i right " system("Y");
...i dont know what's the wrong ?? :rolleyes:
Similar Threads
Team Colleague
Reputation Points: 55
Solved Threads: 3
Junior Poster
meabed is offline Offline
139 posts
since May 2004
May 13th, 2004
0

Re: Clearing the screen

Actually the <conio,h> works....atleast if u use "void main()"
N you shud add the "clrscr();" after the opening braces....(but not towards the end...as ur result will get wiped out before being 'outputted')
Reputation Points: 11
Solved Threads: 0
Newbie Poster
wildrider30 is offline Offline
4 posts
since Apr 2004
May 14th, 2004
0

Re: Format a Partition

http://msdn.microsoft.com/library/de...c_._wpopen.asp

need to use _popen() to send commands down a pipe to format, ur method will not work.
Reputation Points: 47
Solved Threads: 2
Junior Poster in Training
infamous is offline Offline
77 posts
since Mar 2004
May 16th, 2004
0

Re: Format a Partition

I'm sorry can u write an example
Team Colleague
Reputation Points: 55
Solved Threads: 3
Junior Poster
meabed is offline Offline
139 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: programming c in unix
Next Thread in C Forum Timeline: Im lost in my program, plesae please help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC