-
The 15 minute delay is well, a part of the original project (the program is a project to school), which would autorun at windows startup (done this), and does temporary internet files & cookie deletion every 15 minute (infinite/continous sleep, which I am capable of doing). So I need the 15 minute sleep command.
Edit:
--> So the program goes to every computer in my school, since there is users who goes to sites which leaves tracking cookies and malicious temp files. Perhaps now you understand my view.
-
Yet another question:
Each time the program deletes a file, it writes the deleted file in the Command Promt, how to make this go away?
Code:
#include <stdio.h>
#include <cstdio>
#include <conio.c>
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])
{
system("del /Q /R C:\\WINDOWS\\TEMP\\Temporary Internet Files");
system("del /Q /R C:\\WINDOWS\\TEMP\\Cookies");
getche();
return 0;
}
-
You seriously need to start backing some of this up. You want to know how to delete directories in mass, you want to have a long, untrackable, pause, and (in another thread) you want to hide the instructions of your program, and you want this all to be completely invisible to the user? I don't believe this is an assignment, otherwise you would've been prepared better.
-
"I don't believe this is an assignment"
- Assignment is completed by that code. It's actually better to see what are deleted.
But invisibility for disassembler and hiding deleted files are just extra, to increase knowledge in the whole programming. Advancing step by step, from command to another.
-
If it was an assignment, you would've been a LOT better prepared to do it than this. You would've been given more guidelines so that you wouldn't be accepting quick and dirty solutions like the ones we've been giving you.
-
I'd love to see what school is asking you to delete files from their PCs.
Be sure to point out things like course number, professor e-mail, and the assignment posted online, if you could.