Android 台灣中文網
標題:
會DOS指令的大大麻煩看指令是錯在哪裡呢?(多帳號輪流開)
[打印本頁]
作者:
tonyjj43
時間:
2016-8-16 23:42
標題:
會DOS指令的大大麻煩看指令是錯在哪裡呢?(多帳號輪流開)
會DOS指令的大大麻煩看第二段指令是錯在哪裡呢?(系統找不到指定的路徑)請幫忙一下,看是該怎麼下指令!!(先感謝囉!!)也給其他需要的人使用!!
問題:第二,三個帳號路徑錯誤
(紅色字體部分)
,該指令要怎麼下好呢?
檔案放在
D:Necrobot 0.8.7sport6666
(第一個帳號)
:start
timeout /t 10
start ./NecroBot.exe
start ./NecroBot.GUI.exe
timeout /t 1800
taskkill /im:necrobot* /f
:start
timeout /t 600
cd D:Necrobot 0.8.7sport7777Necrobot
//
(第二個帳號)
start ./NecroBot.exe
start ./NecroBot.GUI.exe
timeout /t 1800
taskkill /im:necrobot* /f
:start
timeout /t 600
cd D:Necrobot 0.8.7sport8888Necrobot
//
(第三個帳號)
start ./NecroBot.exe
start ./NecroBot.GUI.exe
timeout /t 1800
taskkill /im:necrobot* /f
:start
timeout /t 600
goto start
作者:
bullbat
時間:
2016-8-17 00:00
你沒有回到上一個目錄,一直停在第一個目錄裡怎找的到下一個的資料夾。
回上一目錄
CD..
作者:
tonyjj43
時間:
2016-8-17 00:06
bullbat 發表於 2016-8-17 00:00
你沒有回到上一個目錄,一直停在第一個目錄裡怎找的到下一個的資料夾。
回上一目錄
CD.. ...
cd..也寫過,但是還是顯示路徑錯誤!
作者:
fahntian
時間:
2016-8-17 00:11
DOS下路徑不要有空格,要有空格請加雙引號
作者:
bullbat
時間:
2016-8-17 00:21
我覺得是你的資料夾的位置有問題,或 CD.. 放錯位置,我的建議把每個資料夾的NecroBot.exe做成捷徑,然後全部捷徑跟批次檔放在一起,批次檔裡直接指向捷徑,就不用管資料夾位置。不知道這樣你聽得懂嗎?
提醒,例"捷徑1",在批次檔裡要寫成"捷徑1.lnk"才會執行。
我也是用了多隻循環,才想到用捷徑的方式,不然打位置都打到昏了。
作者:
knightxyz
時間:
2016-8-17 00:35
本帖最後由 knightxyz 於 2016-8-17 00:36 編輯
:start1timeout /t 10 > null
cd "路徑1"
start /b NecroBot.exe
start /b NecroBot.GUI.exe
timeout /t 1800 > null
taskkill /f /im necrobot* > null
:start2
timeout /t 600
cd "路徑2"
start /b NecroBot.exe
start /b NecroBot.GUI.exe
timeout /t 1800 > null
taskkill /f /im necrobot* > null
:start3
timeout /t 600
cd "路徑3"
start /b NecroBot.exe
start /b NecroBot.GUI.exe
timeout /t 1800 > null
taskkill /f /im necrobot* > null
:delay
timeout /t 600 > null
goto start1
作者:
rodoxp
時間:
2016-8-17 19:36
本帖最後由 rodoxp 於 2016-8-17 19:53 編輯
右斜線論壇回覆出不來??
登錄/註冊後可看大圖
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1