Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set $doc=D:\Games\WoW\Backup
- set $pic=D:\Games\WoW\Backup
- setlocal enableDelayedExpansion
- tasklist | findstr /i /c:"wow.exe" /c:"wow-64.exe"
- if %errorlevel% equ 0 exit
- cd /d "%~dp0Logs"
- if not exist WoWChatLog.txt goto combat
- for %%S in (WoWChatLog.txt) do if %%~zS equ 0 type nul > WoWChatLog.txt & del /f /q WoWChatLog.txt & goto combat
- for /f %%C in ('dir /b WoWChatLog*.txt ^| find /c /v ""') do set $num=%%C
- if %$num% geq 10 type nul > WoWChatLog1.txt & del /f /q WoWChatLog1.txt
- set $count=0
- for /f "tokens=*" %%T in ('dir /b /o:d WoWChatLog*.txt') do (
- set /a $count+=1
- ren %%T WoWChatLog!$count!.txt)
- :combat
- if not exist WoWCombatLog.txt goto taint
- for %%S in (WoWCombatLog.txt) do if %%~zS equ 0 type nul > WoWCombatLog.txt & del /f /q WoWCombatLog.txt & goto taint
- for /f %%C in ('dir /b WoWCombatLog*.txt ^| find /c /v ""') do set $num=%%C
- if %$num% geq 10 type nul > WoWCombatLog1.txt & del /f /q WoWCombatLog1.txt
- set $count=0
- for /f "tokens=*" %%T in ('dir /b /o:d WoWCombatLog*.txt') do (
- set /a $count+=1
- ren %%T WoWCombatLog!$count!.txt)
- :taint
- if not exist taint.log goto files
- for %%S in (taint.log) do if %%~zS equ 0 type nul > taint.log & del /f /q taint.log & goto files
- for /f %%C in ('dir /b taint*.log ^| find /c /v ""') do set $num=%%C
- if %$num% geq 10 type nul > taint1.log & del /f /q taint1.log
- set $count=0
- for /f "tokens=*" %%T in ('dir /b /o:d taint*.log') do (
- set /a $count+=1
- ren %%T taint!$count!.log)
- :files
- robocopy "%~dp0." "%$doc%\WoW other" *.bat
- robocopy "%~dp0Fonts" "%$doc%\WoW other\Fonts" /E
- robocopy "%~dp0Logs" "%$doc%\WoW logs" WoW*Log*.txt
- robocopy "%~dp0Logs" "%$doc%\WoW logs" taint*.log
- robocopy "%~dp0Screenshots" "%$pic%\WoW screenshots"
- robocopy "%~dp0Sound" "%$doc%\WoW other\Sound" /E
- robocopy "%$doc%\WoW logs" "%~dp0Logs" WoW*Log*.txt
- robocopy "%$doc%\WoW logs" "%~dp0Logs" taint*.log
- robocopy "%$doc%\WoW other" "%~dp0." *.bat
- robocopy "%$doc%\WoW other\Fonts" "%~dp0Fonts" /E
- robocopy "%$doc%\WoW other\Sound" "%~dp0Sound" /E
- robocopy "%$pic%\WoW screenshots" "%~dp0Screenshots"
- cd /d "%$doc%\WoW Interface"
- md Interface
- for /f %%C in ('dir /b Interface* ^| find /c /v ""') do set $num=%%C
- if %$num% geq 10 rd /s /q Interface1
- set $count=0
- for /f "tokens=*" %%T in ('dir /b /o:d Interface*') do (
- set /a $count+=1
- ren %%T Interface!$count!)
- robocopy "%~dp0Interface" "%$doc%\WoW Interface\Interface%$count%" /E
- cd /d "%$doc%\WoW WTF"
- md WTF
- for /f %%C in ('dir /b WTF* ^| find /c /v ""') do set $num=%%C
- if %$num% geq 10 rd /s /q WTF1
- set $count=0
- for /f "tokens=*" %%T in ('dir /b /o:d WTF*') do (
- set /a $count+=1
- ren %%T WTF!$count!)
- robocopy "%~dp0WTF" "%$doc%\WoW WTF\WTF%$count%" /E
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement