看板 Programming 關於我們 聯絡資訊
大家好 請問一下batch變數中可以保留原本特性的方法嗎 例如shell的 `` 假設 a.txt裡面為 a b c shell script內 test=`cat a.txt` echo $test a b c 在batch內要怎麼設 echo %test%才能得到一樣的效果呢 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.229.249.1 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1496736220.A.E12.html
OSDBNetwork: for /f %%i in (a.txt) do echo %%i111.255.155.119 06/06 18:09
nashsai: 不能用一個變數來存嗎 後面還會用到test 220.229.249.1 06/06 18:38
MOONRAKER: 改用bash for windows卡實在 114.32.45.138 06/08 15:57