0
我正在做一個.bat打開一些程序,當我要開始流式傳輸,但它說它找不到路徑。簡單的.bat不斷彈出錯誤
這是我的蝙蝠:
taskkill /f /im Spotify.exe
taskkill /f /im Snaz.exe
taskkill /f /im obs64.exe
taskkill /f /im chrome.exe
cd /d "C:\Users\marka\AppData\Roaming\Spotify"
start C:\Users\marka\AppData\Roaming\Spotify\Spotify.exe
cd /d "F:\Stream Local\Snaz"
start F:\Stream Local\Snaz\Snaz.exe
cd /d "C:\Program Files (x86)\obs-studio\bin\64bit"
start C:\Program Files (x86)\obs-studio\bin\64bit\obs64.exe
start chrome https://www.twitch.tv/markaabo
TIMEOUT 1
start chrome https://streamlabs.com/dashboard#/
TIMEOUT 1
start chrome https://inspector.twitch.tv/#/
TIMEOUT 1
start chrome https://twitter.com/markaabo
pause
但是,當涉及到cd /d "F:\Stream Local\Snaz"
失敗一個拿出一個錯誤消息指出「Windows無法找到F:\流控制,你拼寫是否正確,然後再試一次。」(很抱歉,如果其翻譯錯我的電腦是在丹麥)
您是否嘗試過在您的'開始'調用中放置「」周圍的路徑? (例如'開始「F:\ Stream Local \ Snaz \ Snaz.exe」') – Forty3
如果使用可執行文件的完整路徑啓動應用程序,則CD命令毫無意義。你也可以在START命令中使用/ D選項。 – Squashman
@ Forty3在開始後也放了一個標題。 '開始「」「」F:\流本地\ Snaz \ Snaz.exe「' –