Windows批處理學習筆記

1、Call和Start
Call是單線程處理,Start是多線程處理。
例如:
call batch1.bat
call batch2.bat
batch1.bat執行完後,接着執行batch2.bat。如果沒有call,執行完一個後,就結束了,因爲windows批處理是單線程的.

start batch1.bat
start batch2.bat
併發執行兩個bat。

2、copy和xcopy
copy:copy one or more files to another location
xcopy: copy one or more files or directories to another loaction.

3、choice
choice /C YNC /M "Press Y for Yes, N for No or C for Cancel."
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章