You're viewing a comment by Jeff and its responses.

Jeff Permalink
December 11, 2013, 19:32

I disagree with some posters. For example when you work inside a company, running a non-managed executable is not an option. Also many users don't have admin access to their PC\laptop. So sometimes Windows scripts are the only way to go.
If you are worried about the location within the filesystem, you can add a section in the script to fetch the location, and populate it instead of hardcoding.

I added 2 sections for Java and Silverlight:

set Silverlight=C:\Users\%USERNAME%\AppData\LocalLow\Microsoft\Silverlight\is
del /q /s /f "%Silverlight%"
rd /s /q "%Silverlight%"

set Java=C:\Users\%USERNAME%\AppData\LocalLow\Sun\Java\Deployment\Cache
del /q /s /f "%Java%"
rd /s /q "%Java%"

As an alternative you can always use CCleaner, or Advanced System Care.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.