# include <stdio.h> # include <conio.h> # include <dos.h> const int DeleteFile(const char*); int main( ) { char* File=NULL; clrscr( ); printf(\" Enter the File Path and Name to delete = \"); scanf(\"%s\",File); if(DeleteFile(File)) printf(\"\\n Error : Unable to delete the file.\"); else printf(\"\\n The File is deleted sucessfully.\"); getch( ); return 0; } //--------------------------- DeleteFile( ) ---------------------------// const int DeleteFile(const char* File) { union REGS InReg; union REGS OutReg; InReg.h.ah=0x41; InReg.x.dx=FP_OFF(File); int86(0x21,&InReg,&OutReg); return OutReg.x.cflag; }