Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何使用 /qn 静默安装 msi。我也知道如何通过使用命令 start http://www.example.com/file.exe来下载东西。但是我如何将这两个放在一个批处理文件中?!我想下载它,然后安装它,一切都是静默的。
尝试 start /w URL 看看它是否会模态等待。如果没有,请下载wget for Windows并使用该 start /w 选项:
wget for Windows
start /w "wget -c http://example..."
start /w "file /qn"
if not errorlevel 1 echo Success!
可能有问题,但这应该会推动你朝着正确的方向前进。