I tried to desigen program that format partition from the HDD. like D:... then
i right this code
system("format d: /q");
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:
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')
need to use _popen() to send commands down a pipe to format, ur method will not work.
I'm sorry can u write an example:D