EvoTalk

03 十一月, 2009

Open Default Application by Extension

Posted by: asd In: 科技新知| 軟體使用 ()

在windows下,如果要在console下命令,根據檔名開啟預設的應用程式
start 123.txt   # 開啟預設文字編輯器
start http://www.google.com #開啟預設的瀏覽器
start mailto:admin@123.com //開啟預設的email軟體

若是在linux 下,使用的是gnome
gnome-open 123.txt
gnome-open http://www.google.com
gnome-open mailto:admin@123.com

參考 Open a file from the command line using its default application

Most Commented Posts



No Responses to "Open Default Application by Extension"

Comment Form


  • BK: 大於和小於在今日更廣泛地使用於標籤上,故在此補充該英文用法: : angle bracket []: square bracket
  • luh1688: 非常實用且謝謝!~
  • asd: 好的,不過很久沒修改了,不知道能不能動 寄到您的yahoo信箱
  • LIANG: nice post, thank you
  • Justmaker: 您好,請問可以跟你要source嗎?我最近有在看股票,想要enhance您的小工具,不知是否可以開放?

Category