作者hirabbitt (兔子)
看板Visual_Basic
標題[VB6 ] 如何執行notepad並開啟txt檔
時間Wed Sep 22 13:32:05 2010
網路上怎麼找都是讀取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)
→ x000032001:Shell "notepad C:\z.txt" 09/22 13:48
→ hirabbitt:喔 感謝 我把ShellExecute的最後一個參數改成2就ok了 09/22 14:03