[-AI-] 取得ShellExecute的執行結果

看板EzHotKey作者 (搞不定嗎用C4就對了)時間4年前 (2020/12/08 22:12), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
https://www.autoitscript.com/forum/topic/203236-shellexecute/ #include<AutoItConstants.au3> #include<MsgBoxConstants.au3> $process=Run("help dir","", @SW_MAXIMIZE,$STDOUT_CHILD) ProcessWaitClose($process) ;w8 the command to be executed $Result=StdoutRead($process) ;the command output will be stored on $Result variable MsgBox($MB_OK,"Command result",$Result) ;show the output on a msgbox FileWrite("helpdir.txt",$Result) ; save the output in txt file -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.132.89.223 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1607436733.A.5F2.html
文章代碼(AID): #1VpuczNo (EzHotKey)
文章代碼(AID): #1VpuczNo (EzHotKey)