Thread: Searching for file, than deleting it.

  1. #1
    Registered User Machewy's Avatar
    Join Date
    Apr 2003
    Posts
    42

    Question Searching for file, than deleting it.

    Hey,

    I am making a program in c++ that deletes the internet history on a pc. My major problem is that, I don't know how to search for a key word like, *cookies*, and then delete it. I want it to work something like this:
    PHP Code:
    1search for keyword "*cookies*"  
    2then delete all files containing that word or file named that
    Thank-you so much,
    Machewy
    "All things come to an end"

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    deleting a file

    You can look at the previous thread on deleting folders and subfolders. You modify the code so that it accomplishes what you need.
    zMan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Visual C++ 2005 linking and file sizes
    By Rune Hunter in forum C++ Programming
    Replies: 2
    Last Post: 11-12-2005, 10:41 PM
  4. about searching and deleting files?
    By jawwadalam in forum Windows Programming
    Replies: 6
    Last Post: 06-07-2003, 09:15 AM
  5. searching and deleting
    By meeko2001 in forum C++ Programming
    Replies: 1
    Last Post: 12-07-2001, 04:03 AM