@MichaelGao 在 分享一个强制删除文件脚本 中发帖
最近公司的同事遇到好几起邮箱下载的文件打不开也删除不了,只能在PE模式下用工具删除,鼓捣了一会儿写了一个强制删除的脚本,把文件拖到脚本上就可以强制删除了。创建bat文件,并粘贴进去,需要的可以试试。
@echo off
set "target=%~1"
:: Check if user dragged a file onto the script
if "%target%"=="" (
echo.
echo ========================================================
echo ERROR: Please drag and drop a file or folder here.
echo ========================================================
...