看板 Visual_Basic 關於我們 聯絡資訊
小弟目前使用FileSystemWatcher來監控一個資料夾 當資料夾有.txt存入會執行cmd做其他動作 請問可以把剛接收到的txt檔案名稱存成變數 給cmd去做執行動作嗎? 要怎麼使用呢? 麻煩了謝謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.136.50.12 ※ 文章網址: https://www.ptt.cc/bbs/Visual_Basic/M.1459238876.A.4F2.html
ian90911: Command Line Arguments03/29 21:08
我知道要使用命令列引數 但是現在問題就是如何把剛剛的檔案名稱變稱引數 像是如果接收到123.txt 就跳出msgbox"hello 123" ※ 編輯: maxding0430 (114.136.50.12), 03/30/2016 07:30:33
ian90911: Path.GetFileNameWithoutExtension 03/30 14:52