PC cleaner

Introduction


This article is on tracks cleaning, (cleaning files/folders and registry entries that can be used to get information about you and your computer) and introduces the use of Registry keys, IO(deleting files/folders), to clean basic tracks from your computer.


Using the code

The only code that is important in this article is the following which is the main part of my whole program. All the following code is used for is deleting the files/folders and registry keys that are tracks.
CODES:
This code is used when we start the program; all the above code does is tell the program to get the location of the important folders that we will be using in this program and put them in a label. The program gets the folder location of the required folders from registry keys (that exist on every computer using Windows XP [any version]). Then the program checks whether the required folders exist, and if they do then the program puts the location of the folders in labels as listed below.
  1. The Cookies Folder location goes into label2.
  2. The History Folder location goes into label3.
  3. The Recent Folder location goes into label4.
  4. The Internet Cache location goes into label5
  5. And the last one which is special (because I had to find a different way to get its location) - the Temporary Files/Folders folder. Because no registry entry (I could find) lists its location. So I had to seenvironment.username to get the username of the user. So the location of the temporary folder isC:\Documents and settings\Username\local settings\temp. And then the program checks whether the Temp Folder exists, and if it does the location of the Temporary Files, folder goes into label8.
The Files/Folders that require deleting:
Well I'm not going to go into too much depth here. I will just explain what the code is accomplishing. All the code does is check whether the folders that I listed above exist, and if they do, get each file in the folder, and set it to normal attributes. I did this because what happens if a file is read-only and we try and delete it? This could generate an error (because sometimes read-only files cannot be deleted).

Therefore, it was safer to just set the files to normal attributes because they can be safely deleted, unless the files are in-use. If they are in use, they are just left there because they cannot be deleted. At least, not by this program.

Then once the files attribute has been set to normal the files can be safely deleted (unless in-use, when they are left there). Once the files in the folder have been deleted, the program tries to delete the folder and any files/folders left in the different important files listed above (cookies, history etc.). This is the code that accomplishes this:
CODES:


This code deletes the directory and any files/folders left in it (As long as they're not in-use). Delete Cookies folder

This folder houses the cookies on your computer in it. Cookies are little text files that store information from websites such as settings, Passwords(such as your password for CP). But they can be used to track your surfing habits (such as websites visited that you may not want people to know about)




CODES:
Delete Recent folder
CODES:
This folder houses information on Recent files used/executed.


Delete History folder
The files that are in this folder contain information on what webpages you visited on a particular date.
CODES:



Delete Internet Cache folder
This folder has all the files that are downloaded when you visit webpages in it. The tracks that are in here are, records of the webpages that you have visited.
CODES:



Delete temporary files Folder

This folder has temporary files in it that can take up alot of space. It can also have tracks (Cookies,History etc...) stored in it.
CODES:



Deleting/creating Registry keys/subkeys

Now we are on to the last bit, still with me? You are? Good; not long to go

The code below is self-explanatory. It is just creating the key to make sure it exists (because if the key doesn't exist an error comes up saying, something like, "Registry key didn't exist") and then deleting the Registry key.

Delete typed urls:
CODES:
This registry key has information about Webpages that you have typed in your Web-browser.


Delete info on recent files run:
CODES:
This registry key has information on Recent files that were opened on your computer.


Delete info on Recent docs:
This registry key has information in it about Recent documents that you have had open.
CODES:

Delete info on Common dialog:
This registry key has information about certain settings that involve the layout of Windows. But they don't actually do anything(they are not required and are perfectly safe to delete).
CODES:

Delete info on Stream history:
This registry key houses registry entries that are stored as Binaries. They have no use and can sometimes   house important information in them that can be thought of as tracks.
CODES:
Points of Interest
When creating this program one of the main problems that I faced were with files that were in-use, such as theindex.dat files. These files cannot be easily deleted (because they are in-use) and when trying to delete these occasionally an error occured. To get around this I added '//On error goto err: err: '//DO NOTHING, aka an Error catcher. Which captures any errors. Alternatively I could have used try and catch but //on error goto err, is another way that I believe is less awkward, to use for error catching.

11 comments:

  1. Please Provide me the Zip folder of PC cleaner program with source code and exe at abhishek_1410{at}rediffmail.com

    ReplyDelete
    Replies
    1. Visual Basic.Net: Pc Cleaner >>>>> Download Now

      >>>>> Download Full

      Visual Basic.Net: Pc Cleaner >>>>> Download LINK

      >>>>> Download Now

      Visual Basic.Net: Pc Cleaner >>>>> Download Full

      >>>>> Download LINK tj

      Delete
  2. It offers the downloadable project please?

    ReplyDelete
  3. Hi, Its very nice article. Actually I have searched a lot for this. Finally I found it here. Really thank you. And I want to develop a software like pc cleaner. I used the method provided by you in this article. But I want to know that, Is there any other folders to be deleted present on the computer? And please provide some suggestions or some materials to develop a software like pc cleaner?

    ReplyDelete
  4. Please Provide me the PC cleaner program with source code at baba.dheeraj84@rediffmail.com

    ReplyDelete
  5. hello sir can you email and send me your codes for this advance thank you and ill wait you :)

    ReplyDelete
  6. Please Provide me the Zip folder of PC cleaner program with source code and exe at emre.emre3425@gmail.com

    ReplyDelete
  7. Please Provide me the Zip folder of PC cleaner program with source code and exe at emre.emre3425@gmail.com

    ReplyDelete
  8. I have read this blog post. Very Useful information. You really describe this topic very well.
    We provide IGS Cleaner the Best Computer Cleaning Software for your PC to scan, clean and Optimize it. IGS Cleaner which has all ideal features to get you a Smoother and Faster Performing PC.

    ReplyDelete
  9. Visual Basic.Net: Pc Cleaner >>>>> Download Now

    >>>>> Download Full

    Visual Basic.Net: Pc Cleaner >>>>> Download LINK

    >>>>> Download Now

    Visual Basic.Net: Pc Cleaner >>>>> Download Full

    >>>>> Download LINK NL

    ReplyDelete