| | |
Format a Partition
![]() |
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 adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi





