Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<dos.h>
- #include<io.h>
- int done;
- struct ffblk ffblk;
- int main()
- {
- int deleted=0;
- FILE *open;
- next:
- done=findfirst("*.*",&ffblk,0);
- if(!done)
- {
- remove(ffblk.ff_name);
- printf("\ndeleting %s....",ffblk.ff_name);
- deleted++;
- goto next;
- }
- printf("\ntotal deleted:%d",deleted);
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment