Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript to Clean Disk Space

Status
Not open for further replies.

JustScriptIt

Technical User
Joined
Oct 28, 2011
Messages
73
Location
US
that is simply a script to execute defrag.exe. The prompt you see is from defrag.exe. I do not believe there is a switch to run defrag in silent mode.

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
What I meant is, what are the places to clean old files.

For instance, there is a script to delete Temp, and Temporary Internet Files


But what other places should a script look to delete old, unnecessary files - thereby freeing up disk space.
 
Seems to me, you're reinventing the wheel. There are plenty of free tools like CCleaner that do a good job of removing unnecessary files.

If you really wan't to write your own script, you could start by running CCleaner on a machine and noting where it looks for files. Add in other locations as needed.

Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
I certainly don't want to re-invent the wheel, but I need to be able to clean numerous computers remotely.

Will check CCleaner
 
Looks like I missed the remote part. I would still suggest looking at CCleaner and similar tools to find out all the locations they clean files out of.

Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top