看板 Editor 關於我們 聯絡資訊
目前在windows上使用GVIM有一個小小的問題 譬如我在 command 模式下輸入 :!dir 會出現 MS-DOS的視窗 show出訊息 但是我今天不想要命令執行的訊息出來 於是 我輸入 :silent !dir 就會出現 一閃而逝的MS-DOS的視窗 我的問題是 有辦法把那個MS-DOS視窗擋住不要讓他出現嗎? 先感謝各位回答~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.26.161.204
kornelius:try: cal system("dir") 09/15 14:15
kornelius:to get the result: let output = system("dir") 09/15 14:16
kornelius:see: `shellredir` option and `system()` 09/15 14:16
fuha: 感謝樓上 馬上去試試 ! 感激 09/15 18:13