I am trying to automate some cleanup on profiles and running into a problem with file paths that exceed 256 characters and looking for help. The folder is ..\appdata\local\Microsoft\windows\Temporary Internet Files\Content.ie5\*. This is basically the IE cache folder and contains file names that have anywhere from 2 - 100+ characters, add the path to it and some exceed the 256 character limit The OS wont let you modify the file in any way(delete, move, remove, rename, etc) MANUALLY I can map a drve to the path and delete the files individually. This is the only way I have found to delete them. I have tried scripting this process in numerous ways but I constantly get the "file cannot be deleted the path exceeds 256 characters" error. Any ideas how I can script this?
↧