dos命令下等待使用者輸入

whatnamecaniuse發表於2014-09-26


http://www.2cto.com/os/201304/204913.html


dos命令下等待使用者輸入
 
批處理如何做到等待使用者輸入一個值
 
只需要一個命令即可:
 
set/p xxxx= >nul
 
echo %xxxx%
 
就可以輸出使用者輸入的值了

相關文章