Jump to content
Korean Random
HETCEPBEPA

Очистка кэша клиента при выходе

Recommended Posts

Подскажите пожалуйста пример кода чтобы при выходе из игры чистился кэш 

 

DeleteDirs = ('account_caches', 'battle_results', 'clan_cache', 'custom_data', 'dossier_cache', 'messenger_cache', 'storage_cache', 'veh_cmp_cache', 'web_cache', 'profile')

Share this post


Link to post

Short link
Share on other sites
move "%appdata%\wargaming.net\WorldOfTanks\preferences.xml" %temp%
rmdir /S /Q "%appdata%\wargaming.net\WorldOfTanks"
md "%appdata%\wargaming.net\WorldOfTanks"
move %temp%\preferences.xml "%appdata%\wargaming.net\WorldOfTanks"

:blinky:

Share this post


Link to post

Short link
Share on other sites

@ShuraBB  Я имел ввиду код на python типа

def clearClientCache(): 
    toDeleteDirs = ('account_caches', 'battle_results', 'clan_cache', 'custom_data', 'dossier_cache', 'messenger_cache', 'storage_cache', 'veh_cmp_cache', 'web_cache', 'profile')

Share this post


Link to post

Short link
Share on other sites
2 часа назад, HETCEPBEPA сказал:

Я имел ввиду код на python типа

Можно и на питоне, но проще и быстрее это сделать батником и в клиент лезть не придется.

Share this post


Link to post

Short link
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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...