看板 EZsoft 關於我們 聯絡資訊
目前我已經可以用 svn log -l 1 這個指令抓到我要的東西 像是以下 D:\Firmware\abc>svn log -l 1 ------------------------------------------------------------------------ r7611 | XXXXX@XXXXX | 2014-09-09 17:27:17 +0800 (週二, 09 九月 2014) | 1 line ------------------------------------------------------------------------ 我想把 r7611這個字串拿來當成檔名 但一直試不成功 是不是只要cmd window印出來的東西都可以拿來用? 謝謝 -- -好管弦事- A place about cello and music.... http://fnt72.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.120.214.33 ※ 文章網址: http://www.ptt.cc/bbs/EZsoft/M.1410257819.A.7BA.html
mshx: 裝cygwin直接寫bash script比較快... 09/09 19:11
rick65134: windows的批次檔沒那麼弱 這算小case了 09/09 20:25
civiltensai: http://ss64.com/nt/syntax-substring.html 09/09 23:25
tonyhsie: 為了這個裝CYGWIN也太猛 09/09 23:41
virve: 裝cygwin 不如寫程式了 09/10 00:15
kobenein: 其實我有裝cygwin 不過shell scrpit我比batch file 09/10 12:42
kobenein: 更不會用... 09/10 12:42
hsiaulong: 用 For /F %a in ('svn log -l 1') do echo %a 可以嗎 09/11 12:22