Need help with Google Chrome!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

DWreck

Thread Starter
Joined
Dec 1, 2011
Messages
13
Hello, I am finely tired of having to delete everything manualy with Google Chrome. Google Chrome is a good web browser but without the feature to just "Open" something (Even though the others don't really "Open" they just temporally keep it) its really hard to keep track on what to keep and what to throw away. If possible I would like to use a program but if not that's ok I'll just use the Task Scheduler to do it. But first, I need a Batch File so I think its called that way the Task Scheduler can do its job. I made a Folder called "Google Chrome Temp Files" under "Downloads" and would like to have the Task Scheduler delete those files once a week. Also if someone could tell me how to set up the Task Scheduler to do what I said that would be helpful too. Thank you for all your time and help.

DWreck
 

DWreck

Thread Starter
Joined
Dec 1, 2011
Messages
13
So far I have found a Script that can do what I want but I have no idea how to use it :

Try to setup the Scheduled Tasks for the VBScript below. Hope it will help.

WARNING!!!: Make sure to backup your source folder before testing. This script won't place your files into Recycle Bin. Since this script base on date created of the file, you should test to delete your files from its original location. If you copy your files to another location the date created will change to the current date then no file match with your criteria to delete.

'-------------- CleanUp.vbs --------------------
Option Explicit
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
DeleteFiles fso.GetFolder("C:\Test") '<----- Change this folder name to match with your case.
Sub DeleteFiles(srcFolder)
Dim srcFile
If srcFolder.Files.Count = 0 Then
Wscript.Echo "No File to Delete"
Exit Sub
End If
For Each srcFile in srcFolder.Files
If DateDiff("d", Now, srcFile.DateCreated) < -7 Then
fso.DeleteFile srcFile, True
End If
Next
Wscript.Echo "Files Deleted successful"
End Sub
'-----------------------------------------------

If someone knows how to use this please tell me.
 

DWreck

Thread Starter
Joined
Dec 1, 2011
Messages
13
Well I have now found some programs that do help but I need 2 of them just to work. There is a program call Cyber-D that lets you set up a auto delete for a X number of days, down side is that it doesn't delete .exe flies or .rar files. But to solve that I found Belvedere that does the same thing but it can delete .exe files and .rar files. So why do I have both still because Belvedere doesn't delete folders and Cyber-D does, so I just set them both the same so that way everything can be deleted. It would still be better for me though if I could just use a Script for Task Scheduler that will delete everything for me instead of having 2 programs to delete everything. So until someone can help me understand how to use a Script in Task Scheduler I'll just use the 2 programs.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top