File.bat giải nén file , xóa "cache" và "pma" trong thư mục profile

File.bat giải nén file , xóa "cache" và "pma" trong thư mục profile

Size
Price:

Đọc thêm

@echo off
:LOOP
setlocal
rem Bat dau vong lap de giải nén file
set "WINRAR_EXE=C:\Program Files\WinRAR\WinRAR.exe"
set "ZIP_FILE=C:\imacros-search-yahoo.rar"
set "DESTINATION_FOLDER=C:\"
"%WINRAR_EXE%" x -o+ "%ZIP_FILE%" "%DESTINATION_FOLDER%"
timeout /t 600 /nobreak
rem Tim kiem va xoa file va thu muc chua tu khoa "pma" trong thu muc va tat ca thu muc con
set "SEARCH_FOLDER=C:\Users\Admin\Desktop\profile"
set "KEYWORDS=pma"
echo Dang tim kiem file va thu muc chua tu khoa "%KEYWORDS%" trong thu muc %SEARCH_FOLDER% va tat ca thu muc con...
echo.
rem Su dung lenh "dir" de tim kiem file va thu muc chua tu khoa "pma"
for /f "delims=" %%F in ('dir /b /s /a:d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay thu muc : "%%F"
    rd /s /q "%%F"
)
for /f "delims=" %%F in ('dir /b /s /a:-d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay file: "%%F"
    del "%%F"
)
echo Hoan thanh tim kiem va xoa file thu muc.
rem Bat dau vong lap de giải nén file
set "WINRAR_EXE=C:\Program Files\WinRAR\WinRAR.exe"
set "ZIP_FILE=C:\imacros-blogger.rar"
set "DESTINATION_FOLDER=C:\"
"%WINRAR_EXE%" x -o+ "%ZIP_FILE%" "%DESTINATION_FOLDER%"
timeout /t 600 /nobreak
rem Tim kiem va xoa file va thu muc chua tu khoa "cache" trong thu muc va tat ca thu muc con
set "SEARCH_FOLDER=C:\Users\Admin\Desktop\profile"
set "KEYWORDS=cache"
echo Dang tim kiem file va thu muc chua tu khoa "%KEYWORDS%" trong thu muc %SEARCH_FOLDER% va tat ca thu muc con...
echo.
rem Su dung lenh "dir" de tim kiem file va thu muc chua tu khoa "pma"
for /f "delims=" %%F in ('dir /b /s /a:d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay thu muc : "%%F"
    rd /s /q "%%F"
)
for /f "delims=" %%F in ('dir /b /s /a:-d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay file: "%%F"
    del "%%F"
)
echo Hoan thanh tim kiem va xoa file thu muc.
set "WINRAR_EXE=C:\Program Files\WinRAR\WinRAR.exe"
set "ZIP_FILE=C:\imacros-search-fun88.rar"
set "DESTINATION_FOLDER=C:\"
"%WINRAR_EXE%" x -o+ "%ZIP_FILE%" "%DESTINATION_FOLDER%"
timeout /t 600 /nobreak
goto LOOP
--- giai-nen.bat ( run as administrator ) , có cài sẳn winrar
----giải-nén imacros-search-yahoo.rar
----đợi 600s
----xóa tất cả file pma ( khi tìm kiếm ) trong thư mục C:\Users\Admin\Desktop\profile
----giải nén file imacros-blogger.rar
----đợi 600s
----xóa tất cả file cache ( khi tìm kiếm ) trong thư mục C:\Users\Admin\Desktop\profile
----giải nén file imacros-search-fun88.rar
----đợi 600s
---------------xoa cache va pma
@echo off
:LOOP
setlocal

rem Tim kiem va xoa file va thu muc chua tu khoa "pma" trong thu muc va tat ca thu muc con
set "SEARCH_FOLDER=C:\Users\Administrator\Desktop\profile"
set "KEYWORDS=pma"
echo Dang tim kiem file va thu muc chua tu khoa "%KEYWORDS%" trong thu muc %SEARCH_FOLDER% va tat ca thu muc con...
echo.
rem Su dung lenh "dir" de tim kiem file va thu muc chua tu khoa "pma"
for /f "delims=" %%F in ('dir /b /s /a:d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay thu muc : "%%F"
    rd /s /q "%%F"
)
for /f "delims=" %%F in ('dir /b /s /a:-d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay file: "%%F"
    del "%%F"
)
echo Hoan thanh tim kiem va xoa file thu muc.

rem Tim kiem va xoa file va thu muc chua tu khoa "cache" trong thu muc va tat ca thu muc con
set "SEARCH_FOLDER=C:\Users\Administrator\Desktop\profile"
set "KEYWORDS=cache"
echo Dang tim kiem file va thu muc chua tu khoa "%KEYWORDS%" trong thu muc %SEARCH_FOLDER% va tat ca thu muc con...
echo.
rem Su dung lenh "dir" de tim kiem file va thu muc chua tu khoa "cache"
for /f "delims=" %%F in ('dir /b /s /a:d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay thu muc : "%%F"
    rd /s /q "%%F"
)
for /f "delims=" %%F in ('dir /b /s /a:-d "%SEARCH_FOLDER%\*%KEYWORDS%*" 2^>nul') do (
    echo Tim thay file: "%%F"
    del "%%F"
)
echo Hoan thanh tim kiem va xoa file thu muc.
timeout /t 600 /nobreak
goto LOOP

0 Reviews

Biểu mẫu liên hệ

Tên

Email *

Thông báo *