引用 | 編輯
troy_liaw106
2011-02-24 13:34 |
樓主
▼ |
||
|
引用 | 編輯
troy_liaw106
2011-02-24 19:43 |
2樓
▲ ▼ |
如果只是要像平常點兩下mp3檔的時候會開起撥放器來撥放該檔案的話要怎麼做
x0 |
引用 | 編輯
ebolaman
2011-02-24 22:50 |
3樓
▲ |
下面是引用 troy_liaw106 於 2011-02-24 19:43 發表的 : 是說,用 VB 設定 執行電腦中的 mp3 檔案會開啟 你自己做的程式嗎? 那就是設定 檔案關聯性,英文好像是 Application Association 登錄檔值在 HKEY_CLASSES_ROOT 下 » 按 WinKey + R (或 開始 » 執行) » regedit » 確定 » HKCR 可以參考此篇 在cmd中設定或查看檔案關聯 » 按 WinKey + R (或 開始 » 執行) » cmd » 確定 » assoc <Name> 例如: assoc .txt 會看到 .txt=txtfile 然後再打 assoc txtfile 就會看到 txtfile=Text Document » 到 regedit » HKCR » txtfile » FriendlyTypeName 就能看到 notepad.exe 了 主要請參考: http://tw.knowledge.yahoo.com/question/question?qid=1609010702981 http://www.codenewsgroups.net/vb/t19053-how-create-vb6-app-that-opens-file-file-double.aspx 額外參考: http://tw.myblog.yahoo.com/jw!TjAozGiBGBKwUbgqDTET/article?mid=623 但是 .mp3 我家好像沒有名稱,反而是底下只有 ShellEx 一稱 可能要另外去查查 ---------------- 後來想想,好像跟你問的有點搭不上,我好像誤會意思了 如果我弄錯的話,能說詳細一點嗎? x1 |