2007年01月21日
[Cygwin] 用cygstart啟動文件檔案
在Cygwin裡找不到常用的start命令,用來開啟檔案總管或執行開啟文件的操作,例如:
alias start='explorer'
後來發現了Cygwin指令cygstart.exe能取代start的功能,因此把上述指令替換如下:
alias start='cygstart'
這樣原來針對幾個常用的副檔名做的指令就都不再需要了,直接用start即可:
// 舊的寫法
function wd() { "c:/program files/OpenOffice.org 2.1/program/swriter.exe" $*; }
##
- 用 start . 開啟檔案總管瀏覽目前資料夾
- 用 start test.doc 以副檔名關聯MS-Word讀取檔案
alias start='explorer'
後來發現了Cygwin指令cygstart.exe能取代start的功能,因此把上述指令替換如下:
alias start='cygstart'
這樣原來針對幾個常用的副檔名做的指令就都不再需要了,直接用start即可:
// 舊的寫法
function wd() { "c:/program files/OpenOffice.org 2.1/program/swriter.exe" $*; }
##
[Cygwin] 用cygstart啟動文件檔案
引用URL
http://cgi.blog.roodo.com/trackback/2661498
