我希望批处理文件询问序列号和用户名,并从用户配置文件中删除两个特定文件夹。我做了这个,但它似乎想*.*
从我运行它的文件夹中删除。
@echo off
set /p serial="Enter Serial: "
set /p username="Enter Username: "
del *.* \\%serial%\C$\users\%username%\appdata\roaming\Microsoft\Windows\Recent\AutomaticDestinations
del *.*
\\%serial%\C$\users\%username%\appdata\roaming\Microsoft\Windows\Recent\CustomDestinations
pause