AnyDesk静默安装
AnyDesk静默安装
下载AnyDesk.exe程序,下载官方的即可
准备一个静默安装的bat脚本,与AnyDesk.exe程序放在同一个文件夹下,然后运行.bat文件
①
@echo off
AnyDesk.exe --install "C:\Users\05\Videos\anydesk" --silent
echo licence_keyABC | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --register-licence
echo anydesk!@# | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --set-password
choice /t 10 /d y /n >nul
for /f "delims=" %%i in ('anydesk --get-id') do set CID=%%i
echo Connection ID Is: %CID%②
beaon运行需注意在AnyDesk.exe前加上路径,有空格注意加双引号
@echo off
"C:\Program Files\anydesk\AnyDesk.exe" --install "C:\Users\05\Videos\anydesk" --silent
echo licence_keyABC | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --register-licence
echo anydesk!@# | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --set-password
choice /t 10 /d y /n >nul
for /f "delims=" %%i in ('C:\Users\05\Videos\anydesk\AnyDesk.exe --get-id') do set CID=%%i
echo Connection ID Is: %CID%Anydesk连接即可,密码为上面脚本中的密码
anydesk!@#