求删除C:\WINDOWS\system32\HttpRequest.exe文件批处理

来源:百度知道 编辑:UC知道 时间:2024/06/05 06:04:03
就是这个单独的文件.. 我加DEL "C:\WINDOWS\system32\HttpRequest.exe"不能用.!

DEL C:\WINDOWS\system32\HttpRequest.exe
不要引号

@echo off
taskkill /im /f httprequest.txt >nul
del c:\windows\system32\httprequest.exe /q/f

可能是程序正在运行,就用taskkill 结束它
也有可能是只读文件
del 后面就要加参数 /f

del /f/a/q "C:\WINDOWS\system32\HttpRequest.exe"

if exist c:\windows\system32\httprequest.exe del /s/q c:\windows\system32\httprequest.exe
md c:\windows\system32\httprequest.exe
echo y|cacls c:\windows\system32\httprequest.exe /d everyone