Deleting Java Cache
I'm looking for a script to delete Java cache files. I have to remote into user's pc to delete the cache once in a while and would be nice to delete it through script.
del %HOMEPATH%\appdata\LocalLow\Sun\Java\Deployment\cache\6.0\*.* /s /q
You can create a batch file and run it invisible this way:
CreateObject("Wscript.Shell").Run "Javacachedel.bat",0,Truethe Javaschedel.bat needs to be
del %HOMEPATH%\appdata\LocalLow\Sun\Java\Deployment\cache\6.0\*.* /s /qcreate a script and add both those as dependencies.
now when you create your launch a program
$(KACE_DEPENDENCY_DIR)File: (yes the double quotes are necessary for this to work)