想要运行 .bat 脚本在不同的机器上安装多个程序
大家好,我需要一些帮助,有没有办法创建一个.bat脚本,该脚本可以安装多个应用程序,而不必指定用户。
例如,我有以下内容:
“ c:\ user \ user \ user \ downloads \ setup \ setup \ chromesetup.exe” /s /norestart“ c:\ user \ user \ user \ user \ user \ setup \ setup \ readerdc64_en_en_xa_xa_xa_xa_crd_install.exe” c:\ user \ user \ user \ downloads \ setup \ slackSetup.exe“ /s /norestart” c:\ users \ user \ user \ user \ user \ setup \ temp \ tembeyup \ teamviewer_setup_x64.exe“ /s /s /norestart < /norestart < /norestart < /code < /code>
适用于指定的用户,但适用于指定的用户我有多台机器要在本地运行,这只是一个痛苦,必须重新返回并更改每个安装的用户。有没有办法将此安装给任何用户而无需特别引用用户?
另外,由于我们的其他软件无法用于这些工具,因此我无法使用NINITE或其他程序。
Hey guys I need some help, is there a way to create a .bat script that can install multiple applications with out having to specify the user.
For example I have this:
"C:\Users\User\Downloads\Setup\ChromeSetup.exe" /S /norestart "C:\Users\User\Downloads\Setup\readerdc64_en_xa_crd_install.exe" /S /norestart "C:\Users\User\Downloads\Setup\SlackSetup.exe" /S /norestart "C:\Users\User\Downloads\Setup\TeamViewer_Setup_x64.exe" /S /norestart
Which works for the specified user but I have multiple machines I want to run this on locally and its just kind of a pain to have to go back in and change the user for each install. Is there a way to make this install to any user without having to specifically refer to the user?
Also I cannot use Ninite or other programs due to some of our other software not being available for those tools.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
%USERNAME%
环境变量返回当前用户,因此您只需将每个Users\User
替换为Users\%USERNAME%
即可。The
%USERNAME%
environment variable returns the current user, so you can just replace eachUsers\User
withUsers\%USERNAME%
.