| | |
Deleting a file
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2008
Posts: 11
Reputation:
Solved Threads: 1
hello friends this code for delete a file,when i was execute it i got o/p successbut the file was not deleted from my HDD.
c Syntax (Toggle Plain Text)
#include<dos.h> #include<conio.h> #include<stdio.h> main() { clrscr(); union REGS i,o; char far *fname[67]; puts("enter" ); gets("fname"); i.h.ah=0x41; i.x.ax=(int)fname; printf("%d",i.x.ax) ; intdos(&i,&o); if(o.x.cflag==0) printf("success") ; else printf("attempt failed"); getch(); };
Last edited by Narue; Dec 13th, 2008 at 6:27 pm. Reason: added code tags
![]() |
Similar Threads
- Deleting all associated file types? (C++)
- Deleting a file, having problems w compling (C++)
- Error Deleting File or Folder (Windows NT / 2000 / XP)
- Error deleting file or folder (Viruses, Spyware and other Nasties)
- Error deleting file or folder (Windows NT / 2000 / XP)
- ASP: Deleting a file (ASP)
- error deleting file (Windows NT / 2000 / XP)
- Syntax for deleting specified file ( in C++) (C++)
Other Threads in the C Forum
- Previous Thread: Towers of Hanoi(Recursion)
- Next Thread: Data structure programs
| Thread Tools | Search this Thread |
#include * ansi append array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc createprocess() database dynamic execv fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include infiniteloop initialization input interest intmain() iso kernel keyboard kilometer km license linked linkedlist linux list lists looping lowest matrix meter microsoft number oddnumber open opendocumentformat openwebfoundation overwrite owf pdf pointer pointers posix power probleminc process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi





