Jump to content
UBot Underground

"Pictures" bot eats up free space


Recommended Posts

Basically i made a bot that runs in infinite loop loading and liking pictures. Its eating up about 10 gbs every couple of hours. Ccleaner can't catch this. How to get rid of that mess guys? My client isn't happy.

I saw that thread other day with some .bat file that clears awesomnium cache. Help?

Link to post
Share on other sites

I'm not downloading files on purpose. Talking about awesomnium cache folder here. It stores it in weird location that ccleaner on my winxp doesnt reach. And cache comes to 50gbs after some 24 hours run.

Link to post
Share on other sites

I know what you are referencing to. I have been in your shoes many times. Unfortunately that is how Ubot works. You can run a thread to in your bot and clear that cache every X no. of secs.

 

I had it built in my Bot Wiki Master Blaster as well that is referenced in the above post.

 

Hope it helps.

Praney

Link to post
Share on other sites

Thread has to relogin.

I saw somewhere here on forum batch file that finds those awesomium folders and deletes them. can't find it now :(

Link to post
Share on other sites

I think I did some batch files but they were to delete unwanted UbotBrowser instances.

But you may be right. Good luck finding them using Forum search.

Link to post
Share on other sites

Hi,

 

Here is the batch file I wrote to find the Ubot Studio Temp directory.

 

You can add the del command if you want to in :ubotlocalstoragefile section. That is where I decide if the directory is a Ubot Studio Temp directory.

 

@echo off & cls
setlocal EnableDelayedExpansion
for /f "delims=" %%X in ('echo %0') do (
set cmddrive=%%~dX
echo CMD File Drive: !cmddrive!
set cmdpath=%%~pX
echo CMD File Path: !cmdpath!
set cmdfilename=%%~nX
echo CMD File Name: !cmdfilename!
set cmdfileext=%%~xX
echo CMD File Ext: !cmdfileext!
echo --- ---
)
dir /B /S /A:D %temp%\tmp*.tmp >.\%cmdfilename%-tempdirlist.txt

FOR /F "tokens=*" %%A IN (.\%cmdfilename%-tempdirlist.txt) DO (
set checkifdir=%%A
rem echo %%A
call :checkfordir 
)

rem skip code below
goto :exiting

:checkfordir
pushd "%checkifdir%" 2>nul
if errorlevel 1 (
rem echo this is not a dir %checkifdir%
) else (
rem echo this is a dir %checkifdir%
popd
call :findcookiesfile
)
exit /b

:findcookiesfile
if exist "%checkifdir%\Default\Cookies" (
rem echo this dir %checkifdir% has \Default\Cookies file
) else (
rem echo this dir %checkifdir% has no \Default\Cookies file
)
pushd "%checkifdir%\Default\Local Storage" 2>nul
if errorlevel 1 (
rem echo this dir %checkifdir% has no \Default\Local Storage directory
) else (
rem echo this dir %checkifdir% has \Default\Local Storage directory
popd
call :ubotlocalstoragefile 
)
)
exit /b

:ubotlocalstoragefile
type "%checkifdir%\Default\Local Storage\http_www.ubotstudio.com_0.localstorage" 1>NUL 2>NUL
if errorlevel 1 (
rem echo missing file "%checkifdir%\Default\Local Storage\http_www.ubotstudio.com_0.localstorage"
) else (
echo this is a dir %checkifdir%
if exist "%checkifdir%\Default\Cache" (
echo this dir %checkifdir% has \Default\Cache directory
rem del "%checkifdir%\Default\Cache\*"
)
echo this dir %checkifdir% has \Default\Cookies file
echo this dir %checkifdir% has \Default\Local Storage directory
echo found file "%checkifdir%\Default\Local Storage\http_www.ubotstudio.com_0.localstorage"
)
exit /b

:exiting
del ".\%cmdfilename%-tempdirlist.txt"
endlocal EnableDelayedExpansion

 

Kevin

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...