bf2 creates undeletable shader cache

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Well I was just scanning through all my old backed up Windows installs and trying to clean up stuff. How can I delete this file when it can't even be accessed? Ugh...just another example of EA's stunning coding. There's several filenames that are just equal to MAX_PATH at 260 characters. How can I get rid of these? I don't want them lingering on here forever. I can't rename any of the upper-level folders because Windows says "they're in use", which isn't true. It's just too long of a filename. ForceDel doesn't work. Here's one of the file names:

C:\OLDdocuments and settings\unknown.old\My Documents\Battlefield 2 Demo\mods\bf2\cache\{D7B71E3E-4381-11CF-D86F-060A03C2CB35}_2446_3\rashaderbmhas
vanimationhasnormalmaphasgimaphasenvmapusehemimaphasshadowhascolormapglosshasdo
3alphatesthasshadowocclusion.cfx

I can't rename the filename to a shorter one, either. Yes, I use NTFS v5 (XP). What I wonder is HOW people delete shader cache with such atrocious filenames like the aforementioned. I believe a full chkdsk in fix mode was run when this folder existed. I can't delete this from the command line either. When I right click on it in Windows, it's not even considered a file. I see Open and Send To which do nothing at all. Nor does drag-and-drop. I haven't tried floppy disk DOS (Win9X startup disk) yet though.
 

CrispyFried

Golden Member
May 3, 2005
1,122
0
0
From a cmd prompt you can CD to that dir. Then use wildcards to del (like del *.* or del {*.cfx). Or maybe deltree.

edit oops I see you tried the command prompt.
 

MmmSkyscraper

Diamond Member
Jul 6, 2004
9,472
1
76
Originally posted by: xtknight
..\Battlefield 2 Demo\mods\bf2\cache\{D7B71E3E-4381-11CF-D86F-060A03C2CB35}_2446_3\rashaderbmhas
vanimationhasnormalmaphasgimaphasenvmapusehemimaphasshadowhascolormapglosshasdo
3alphatesthasshadowocclusion.cfx

I can't believe someone thought that was a good idea :confused:



 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Well if anyone here uses a long user name for their XP they could very well be caught up in a problem like this. Maybe I should report this as a bug to EA.