我剛剛創建了簡單的批處理腳本。我想用「-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