Read between the lines, stupid wordwrap! and change / to \
I'm cutting and pasting this from Linux. Also my OS is 64bit and
Robocopy was found in that folder below. 32 bit may be diff.
But loosely translated this should work, not sure it's all the cache but
it seems to work for me.
The first 3 delete some cache and the last one does a mirror backup.
If you're not familiar with robocopy and it's MIRROR command, it will
mirror one source to destination, removing deleted stuff, adding changes
and new and best of all skipping all the files that are the same, making
it a bit faster than copy.
del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/thumbnails/*.*
del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/OfflineCache/*.*
del
/Users/Alan/AppData/Local/Mozilla/Firefox/Profiles/xxxxxxxx.default/cache2/entries/*.*
C:\Windows\SysWOW64\robocopy "C:\Users\alan\AppData\Roaming\Mozilla"
"X:\path\to\some\dir" /MIR /NJH /NJS /DST /NDL