Thread: about searching and deleting files?

  1. #1
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131

    about searching and deleting files?

    I am really tired to remove the files of folder.htt and desktop.ini from my system because i dont wanted to use the antivirus to remove the virus from my system because last time i used the antivirus to clean the virus and it quartine all my html files of the notes i had downloaded from different websites.. that is why I wanted to make a program which find the files folder.htt and desktop.ini from my system and delete them after requesting the confirmation.

    I just wanted to have little idea how to accomplish this task using MFC...
    Please mention the classes and functions who could help me to do this job.

    Thanks,

    Jawwad Alam
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    >> am really tired to remove the files of folder.htt and desktop.ini from my system because i dont wanted to use the antivirus to remove the virus from my system because last time i used the antivirus to clean the virus and it quartine all my html files of the notes i had downloaded from different websites.<<

    Helloooo confusing run-on sentence.

    Why would you want to delete those files anyway?

    Oh well, use FindFirstFile/FindNextFile

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    I also have no real idea what you are talking about - sorry, but if you want to log files in a directory, I have a tutorial on my site here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I believe your question was already answered. But for those interested in decrypting your query here is what I think jawwadalam was asking:

    Here goes
    Hey everyone, you guys are the greatest most talented programmers in the world--er I mean--How would I go about finding and deleting folder.htt and desktop.ini from my system? I got hit with a virus that infected html files and lost a lot of notes and stuff because the antivirus quarantined my html files.

    Also how do I go about deleting files?

    ----------

    Okay, real quick also, desktop.ini is used for windows to display information about a folder (such as a folder's icon, the message given to you when you hover over the folder, etc.) so you may not even want to do that. But if you do, it won't really hurt anything too much.

  5. #5
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131
    In my message I assumed that you guys know the problem of .htt that is why I just focous on the question not the .htt story...

    just -ken- answer the first part of my query about how to find the files....

    thanks, -ken-
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You can use DeleteFile() to delete a file. There is also the standard c way, remove(). There is also unlink(). And lets not forget system("delete folder.htt").

  7. #7
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131

    Thanks... master5001 ....

    hi master5001 thanks for answering the second part of my query..

    have a nice day...
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  2. Searching for file, than deleting it.
    By Machewy in forum C++ Programming
    Replies: 2
    Last Post: 06-06-2003, 07:30 AM
  3. Deleting from Binary search trees
    By lenicush in forum C Programming
    Replies: 6
    Last Post: 03-13-2002, 01:40 PM
  4. searching and deleting
    By meeko2001 in forum C++ Programming
    Replies: 1
    Last Post: 12-07-2001, 04:03 AM