How would you go about deleting files in a drive through a batch file???
How would you go about deleting files in a drive through a batch file???
howdy,
which enviro are you speaking of?
M.R.
What platform are you using? i.e. windows 9x/me/2000/xp, unix, etc.
Windows 98 soon to be XP
a batch file isn't a c++ program.
batch files can be named .bat and can have dos commands in them to perform certain applications that are inherent in the os....
Similarly an executable can delete files using system calls to the OS...
in windows 98
[code]
#include <stdlib>
int main()
{
system ("deltree /Y C:\\mydir\\");
system ("del C:\\myotherdir\\myfile.txt");
system ("rmdir C:\\myotherdir\\");
// etc....
return 0;
}
Do not use your programming ability to delete other people's system files, etc. It is just mean and beneath you.
Blue
Thanx......I wasn't going to erease other peoples stuff......and use the correct tags (code tages also have a [/code] at the end, just a pointer)
Talk about ungrateful...
What......I need it for one of my side projects.