deleting a document ...
Hi, I have a program which makes a bat file, then runs that, and then it finishes. it's not all that elaborate to be honest, but it's fun ... it makes use of the net send operation :).
Anyways, I want a way to delete this file from the computer after the computer has finished running it ... does anyone know how to do that, I'm using windows XP and the compiler is microsoft visual c++ ... cheers
PS I can post up the code if you need it!
PPS I tried saying
and that didn't work
Sorry, I fixed it, I had it in the wrong part of the loop and it wouldn't allow me to access it, thanks anyways!
You can also use "#include <cstdio>" and "remove (filename)" to remove your files.