| | |
Format a Partition
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I tried to desigen program that format partition from the HDD. like D:... then
i right this code
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:
i right this code
C Syntax (Toggle Plain Text)
#include<process.h> int main() { system("d:"); system("format d: /q"); system("y"); return 0; }
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:
•
•
Join Date: Mar 2004
Posts: 77
Reputation:
Solved Threads: 2
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.
need to use _popen() to send commands down a pipe to format, ur method will not work.
![]() |
Similar Threads
- make 2 partition but can only format 1 partition (Windows NT / 2000 / XP)
- Vista to XP (format or partition) problem (Windows NT / 2000 / XP)
- Can't Format Partition (Windows Software)
- Format my computer and keep xp (Windows NT / 2000 / XP)
- Cant boot tecra8100 after deleting partition (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: programming c in unix
- Next Thread: Im lost in my program, plesae please help
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks bash binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile creafecopyofanytypeoffileinc createprocess() database dynamic execv fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux histogram ide inches include infiniteloop initialization input interest intmain() iso keyboard km license linked linkedlist linux list looping lowest matrix meter microsoft number oddnumber open opendocumentformat openwebfoundation owf pdf pointer pointers posix power probleminc process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing scheduling segmentationfault send sequential single socket socketprogramming standard strchr string suggestions systemcall test testautomation testing threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi





