I made a batch earlier today to clean my IMVU http game cache that grows over time with no built in size management, and as it grows it starts to lag out performance as at one point it was filled with 5.3GB of cache mostly junk gathered throughout gameplay which appears to act like a precache for the game. However when you end up with over 100,000 of these small files the performance benefit of these files being local disappears. I made a copy of IMVU before and after so I could restore the 5.3GB of cache data back and it loads rooms etc more than twice as fast by not seeking the data locally but instead redownloading it off the IMVU servers over 25/5 mbps broadband. The batch I made for this specific computer I just gave it the full path of c:\Users\AX4\AppData\Roaming\IMVU\ and told it to remove the HttpCache directory and all contents silently. Then recreate an empty directory back at that location for the IMVU client to write to when the game is run again.
Decided after I made the batch that why dont i figure out a way to make it not system user profile specific. Did some research into the %appdata% use so that it can be dynamic and work for all, but I'm running into syntax error on use and its probably something really simple, but after google searching I figure why not check with you all here to have you point out how to correct for this issue.
Told my friends about cleaning out my IMVU cache made it so much better. Now they want to run it too, but I figured why not make it for anyone to use without having to alter the batch file to be user specific.
The filename, directory name, or volume label syntax is incorrect.
***************************
Erasing IMVU Http Cache
Please Wait...
***************************
Note: The pause after the rd /s /q HttpCache is only here for debugging and would be removed later. I placed it there to capture the error condition.
echo off
color 4f
cls
@echo.
@echo. ***************************
@echo. IMVU Http Cache Eraser
@echo. ***************************
@echo. Version 1.0
@echo. 6/1/2016
@echo.
pause
color e0
cls
cd c:\%AppData%\Roaming\IMVU\
@echo.
@echo.
@echo. ***************************
@echo. Erasing IMVU Http Cache
@echo. Please Wait...
@echo. ***************************
@echo.
@echo.
rd /s /q HttpCache
pause
md HttpCache
color 3f
cls
@echo. **************************
@echo. IMVU Http Cache Erased
@echo. **************************
@echo.
@echo.
pause