• Log in or sign up for an account here: https://www.sythe.org/login

Temporary File Cleaner program (C++)

  • Thread starter Thread starter PdIZZY
  • Start date Start date
P

PdIZZY

Guest
Temporary File Cleaner program (C++)
what up y'all...i have just joined this forum today(feb 5th 08) woohoo...lol

Neway I have been wanting to create a program to clear all the temporary files(temporary Internet Files, Temp, Cookies, History etc) folders for all users on a windows machine (95 to vista or at least xp)....i do know there are programs out there that accomplish this...but i wanted to create mine(at least give it a shot).

C++ is the language i am most familiar with....Hope some1 can help

PdIZZY
 
Temporary File Cleaner program (C++)
so 15 views and no response = either its too complicated, or no1 here has input....
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Temporary File Cleaner program (C++)
The programming forums aren't really that active. I could help you out later though.
 
Temporary File Cleaner program (C++)
This would be a one-liner in bash, and you could set it up to run when you like as a cronjob.
 
Temporary File Cleaner program (C++)
The programming forums aren't really that active. I could help you out later though.

ya i could tell....look forward for some ideas from u SMR....Thanks!
One thing i did start was to write a batch script....but the problem is that the person running that script will need to have WMI installed on computer....hence crashing the script if they dont...so i am no longer doing it that way....and want to write in some way where they a person doesnt have to install anything and the program runs and does its thing...
 
Temporary File Cleaner program (C++)
This would be a one-liner in bash, and you could set it up to run when you like as a cronjob.

unfortunately i don't have any experience on Unix/linux shell programming....
 
Temporary File Cleaner program (C++)
unfortunately i don't have any experience on Unix/linux shell programming....
rm -rf /directory/of/temporary/files

I don't have any experience with cron, but save the above command in a shell script and have it execute every so often.
 
Temporary File Cleaner program (C++)
getenv("TMP"), getenv("TEMP"), getenv("TEMPDIR"), UNIX "/tmp", stdlib's system(char *), and stdio's remove(char *).
 
Member of the Month Winner
Sythe's 10th Anniversary
Temporary File Cleaner program (C++)
Windows offers a utility to do this for you anyway. Right click on the C:\ drive, click Properties and click Disk Cleanup. Strange how the "properties" of the C:\ drive are used for more than just properties.

Linux, all you really need to do is clear the /tmp/ directory. simply means deleting the contents of the folder using rm -r.
 
Temporary File Cleaner program (C++)
Windows offers a utility to do this for you anyway. Right click on the C:\ drive, click Properties and click Disk Cleanup. Strange how the "properties" of the C:\ drive are used for more than just properties.

Linux, all you really need to do is clear the /tmp/ directory. simply means deleting the contents of the folder using rm -r.

looking for a program that will do it automatically wen u visit certain sites
 
Temporary File Cleaner program (C++)
You might want to use the boost.filesystem library, with it the task should be somewhat trivial, provided you know which folders to delete. For finding the actual user directory, there is a windows API by the way.
 
Gohan has AIDS
Two Factor Authentication User
Temporary File Cleaner program (C++)
This would be a good and usefull program..
 
Runescape Gamblingrunescape gambling
Back
Top