CODE: [Copy to clipboard]
::echo off
cls
if exist %windir%\system32\streams.exe (
title 卸载中..
REG DELETE "HKCR\Directory\shell\DelStreams" /f >nul
REG DELETE "HKCR\*\shell\DelStreams" /f >nul
del %windir%\system32\streams.exe /q /f > nul >nul
title 卸载成功
) else (
title 安装中..
copy streams.exe %windir%\system32\streams.exe >nul
REG ADD "HKCR\Directory\shell\DelStreams" /ve /d "删除流文件" /f >nul
REG ADD "HKCR\Directory\shell\DelStreams\command" /ve /d streams.exe" "-s" "-d" \"%%1""">a.txt" /f >nul
REG ADD "HKCR\*\shell\DelStreams" /ve /d "删除流文件" /f >nul
REG ADD "HKCR\*\shell\DelStreams\command" /ve /d streams.exe" "-s" "-d" \"%%1""">a.txt" /f >nul
title 安装成功
)
注册表内的值是