[VB6 ] 如何執行notepad並開啟txt檔

看板Visual_Basic作者 (兔子)時間15年前 (2010/09/22 13:32), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
網路上怎麼找都是讀取txt 我是要開notepad啊 試了Shell ShellExecute Start 三個都不行 有沒有人可以幫幫我? == Shell "explorer D:\Program Files\Microsoft Visual Studio\VB98\EQ\Config.txt" 變成用ie開啟 == Shell "explorer " & App.Path & "\Config.txt" 路徑不存在或不是一個目錄 == Shell "start D:\Program Files\Microsoft Visual Studio\VB98\EQ\Config.txt" 沒動靜 == ShellExecute Handle, "open", App.Path + "\Config.txt", "D:\Program Files\Microsoft Visual Studio\VB98\EQ\Config.txt", nil, SW_SHOW 工作管理員裡面出現好多notepad 但是視窗一個也沒開出來 -- ◤ __ \__◢◤◢◤ ψhirabbitt ◤ ◢███◣ ◢███◣ 妳是我 █████ █████ 你是我 ██ ███ 最愛的寶貝 ██╱╲ ◥█████◣● 最寶貝的愛╱╱ ◥████ ˇ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.13.127.91 ※ 編輯: hirabbitt 來自: 163.13.127.91 (09/22 13:38) ※ 編輯: hirabbitt 來自: 163.13.127.91 (09/22 13:42)

09/22 13:48, , 1F
Shell "notepad C:\z.txt"
09/22 13:48, 1F

09/22 14:03, , 2F
喔 感謝 我把ShellExecute的最後一個參數改成2就ok了
09/22 14:03, 2F
文章代碼(AID): #1CcPJO2D (Visual_Basic)