Temporary File Cleaner program (C++)

Discussion in 'Programming General' started by PdIZZY, Feb 5, 2008.

Temporary File Cleaner program (C++)
  1. Unread #1 - Feb 5, 2008 at 3:02 PM
  2. PdIZZY
    Referrals:
    0

    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
     
  3. Unread #2 - Feb 7, 2008 at 4:25 PM
  4. PdIZZY
    Referrals:
    0

    PdIZZY Guest

    Temporary File Cleaner program (C++)

    so 15 views and no response = either its too complicated, or no1 here has input....
     
  5. Unread #3 - Feb 7, 2008 at 6:59 PM
  6. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Temporary File Cleaner program (C++)

    The programming forums aren't really that active. I could help you out later though.
     
  7. Unread #4 - Feb 7, 2008 at 7:18 PM
  8. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    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.
     
  9. Unread #5 - Feb 8, 2008 at 11:08 AM
  10. PdIZZY
    Referrals:
    0

    PdIZZY Guest

    Temporary File Cleaner program (C++)

    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...
     
  11. Unread #6 - Feb 8, 2008 at 11:13 AM
  12. PdIZZY
    Referrals:
    0

    PdIZZY Guest

    Temporary File Cleaner program (C++)

    unfortunately i don't have any experience on Unix/linux shell programming....
     
  13. Unread #7 - Feb 8, 2008 at 11:34 AM
  14. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    Temporary File Cleaner program (C++)

    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.
     
  15. Unread #8 - Feb 8, 2008 at 5:35 PM
  16. Olan14
    Joined:
    Jan 26, 2007
    Posts:
    581
    Referrals:
    0
    Sythe Gold:
    0

    Olan14 Forum Addict

    Temporary File Cleaner program (C++)

    getenv("TMP"), getenv("TEMP"), getenv("TEMPDIR"), UNIX "/tmp", stdlib's system(char *), and stdio's remove(char *).
     
  17. Unread #9 - Feb 29, 2008 at 10:18 PM
  18. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  19. Unread #10 - Mar 1, 2008 at 10:21 PM
  20. enjoi888
    Joined:
    Feb 28, 2007
    Posts:
    323
    Referrals:
    1
    Sythe Gold:
    0

    enjoi888 Forum Addict
    Banned

    Temporary File Cleaner program (C++)

    looking for a program that will do it automatically wen u visit certain sites
     
  21. Unread #11 - Mar 1, 2008 at 10:37 PM
  22. zstars
    Referrals:
    1

    zstars Guest

    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.
     
  23. Unread #12 - Mar 3, 2008 at 7:44 AM
  24. |0|
    Joined:
    Sep 21, 2007
    Posts:
    818
    Referrals:
    2
    Sythe Gold:
    2
    Vouch Thread:
    Click Here
    Two Factor Authentication User Gohan has AIDS

    |0| Apprentice
    $25 USD Donor New

    Temporary File Cleaner program (C++)

    This would be a good and usefull program..
     
< NEED autoclicker code! | IRC like chat - parsing data? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site