软件说明:本来这个程序是要参加青少年科技创新大赛的,二次选拔没晋级,那就把这个小作品分享给大家,希望大家能喜欢。 本工具采用Windows批处理(bat)编写,列出菜单,通过if语句让用户来决定删除哪些数据。然后读取“%userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config\3ebffe94.ini”
中的文件路径来定位到WeChat Files的路径,进行删除操作。 思路十分简单,话不多说,先上运行截图: 软件配图:
[Python] 纯文本查看 复制代码 @echo off
title Windows微信清理工具 by:yunlongzhuhuo
color 1F
echo.
echo -----------------------------Windows微信清理工具-------------------------------------
echo.
echo ------------------------------【1.清理聊天记录】---------------------------------
echo.
echo -----------------------------【2.清理图片和视频】-----------------------------------
echo.
echo -----------------------------【3.清理接收到的文件】------------------------------
echo.
echo ------------------------------【4.清理全部数据】-------------------------------
echo.
set /p input=请输入要执行的操作所对应的代码:
if "%input%"=="1" goto history
if "%input%"=="2" goto pictures
if "%input%"=="3" goto files
if "%input%"=="4" goto all
:history
set /p wxid=请输入你的微信号:
cd %userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config
set /p location=<./3ebffe94.ini
if "%location%"=="MyDocument:" goto first
if "%location%" neq "MyDocument:" goto second
:first
del /f /s /q "%userprofile%\Documents\WeChat Files\%wxid%\Msg\*.*"
echo 清理成功!
pause
:second
del /f /s /q "%location%\WeChat Files\%wxid%\Msg\*.*"
echo 清理成功!
pause
:pictures
set /p wxid=请输入你的微信号:
cd %userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config
set /p location=<./3ebffe94.ini
if "%location%"=="MyDocument:" goto first
if "%location%" neq "MyDocument:" goto second
:first
del /f /s /q "%userprofile%\Documents\WeChat Files\%wxid%\FileStorage\Image\*.*"
del /f /s /q "%userprofile%\Documents\WeChat Files\%wxid%\FileStorage\Video\*.*"
echo 清理成功!
pause
:second
del /f /s /q "%location%\WeChat Files\%wxid%\FileStorage\Image\*.*"
del /f /s /q "%location%\WeChat Files\%wxid%\FileStorage\Video\*.*"
echo 清理成功!
pause
:files
set /p wxid=请输入你的微信号:
cd %userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config
set /p location=<./3ebffe94.ini
if "%location%"=="MyDocument:" goto first
if "%location%" neq "MyDocument:" goto second
:first
del /f /s /q "%userprofile%\Documents\WeChat Files\%wxid%\FileStorage\File\*.*"
echo 清理成功!
pause
:second
del /f /s /q "%location%\WeChat Files\%wxid%\FileStorage\File\*.*"
echo 清理成功!
pause
:all
set /p wxid=请输入你的微信号:
cd %userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config
set /p location=<./3ebffe94.ini
if "%location%"=="MyDocument:" goto first
if "%location%" neq "MyDocument:" goto second
:first
del /f /s /q "%userprofile%\Documents\WeChat Files\%wxid%\*.*"
rd "%userprofile%\Documents\WeChat Files\%wxid%"
echo 清理成功!
pause
:second
del /f /s /q "%location%\WeChat Files\%wxid%\*.*"
rd "%location%\WeChat Files\%wxid%"
echo 清理成功!
pause
标题是否带有本站网址:
否
病毒查杀截图或链接:
下载链接:下载链接:https://pan.baidu.com/s/1tbElmYnrn6G-L7L5gpFgmQ提取码:4oze
|