@echo off & setlocal
setlocal enabledelayedexpansion
for %%i in ("C:\Users\Public\Documents\Native Instruments\installed_products\*.json") do (
echo %%i
)
set /p var=请输入库名称不要带路径和.json后缀:
echo 您输入的内容为:%var%
del "C:\Users\Public\Documents\Native Instruments\installed_products\%var%.json" /s
del "C:\Program Files\Common Files\Native Instruments\Service Center\%var%.xml" /s
reg delete "HKEY_CURRENT_USER\Software\Native Instruments\%var%" /f
reg delete "HKEY_LOCAL_MACHINE\Software\Native Instruments\%var%" /f
pause
#复制上面代码保存到新建文本文档,然后另存为.bat注意编码为ASCLL