我刚刚创建了简单的批处理脚本。我想用“-q”之类的开关运行uninstall.exe“-splash Uninstall”在批处理脚本中使用短划线和开关
这里是代码; @echo off echo This script will uninstall some features. pause SET path=C:\Program Files\Program\uninstall.exe -q -splash Uninstall START "" "%path%" pause
如果我运行此代码它给出了一个错误:
Windows cannot find 'C:\Program Files\Program\uninstall.exe -q -splash Uninstall'
Make sure you typed the name correctly, and then try again.
如果删除开关,卸载处理正常启动。
那么我该如何在批处理文件中使用这个swtiches?
工作过,非常感谢你。 – Erdogan