對於我們的任務,當我們運行我們的小機器人時,它會陷入無限循環,我們無法完成它。它所做的就是不斷地尋找新的機器人即: Waiting for connection...
Enter command: p2p echo
Finding another bot...
Found bot on port 1338
No bot was listening on port 1338
Found b
我試圖從Windows批處理中的文件中獲得一行,但沒有成功。我嘗試了幾種方法來做到這一點,我不是專家,這對我來說是不可能的。數行讀取dinamically計算: set "file=C:\myfile.txt"
REM Looking for line number where the segment "<segment>" is.
for /f "tokens=1 delims=:" %%