executing system commands without the command prompt popping up
I'm trying to write this program for school that stops kids from making batch files. I know the sys admin can restrict these computers if they wanted to but this is in a special room where the comps are used for too many things to restrict things on.
So anyhow, I wrote a program that minimizes itself to the system tray and keeps on deleting *.bat in a certain directory. Don't worry, I'm not deleting any need files lol.
But when you use the system() function in windows.h, a command prompt box pops up and sort of renders the program useless because every second the cmd box comes up.
I know there are programs that somehow execute system commands, but I can't figure out how to do it without the cmd window popping up.
Any help will be appreciated.