Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: zzapper Subject: Scripts for calling Internet Explorer,Explorer,Word,Access,Excel from Cygwin Date: Sat, 08 May 2004 13:40:16 +0100 Lines: 71 Message-ID: <0rkp90dusb7ll3gneurrim73sk27nqdaic@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Hi With help from this NG have created the following scripts, I think they are very useful especially wexp. (Paths to various apps on your PC may vary of course). Excepting wexp all require a filename as parameter eg > wmdb test.mdb wexp : Launch Windows Explorer with correct "Windows" path wint : Launch Internet Explorer with correct "Windows" path wop : Launch Opera with correct "Windows" path wpdf : Launch Acrobat Reader with correct "Windows" path wxls : Launch Excel with correct "Windows" path wdoc : Launch Word with correct "Windows" path wmdb : Launch Access with correct "Windows" path #!/bin/sh # wexp # description : Launch Windows Explorer with correct "Windows" path XPATH="$(cygpath -w "${PWD}")"; echo $XPATH explorer $XPATH #!/bin/sh # wint # description : Launch Internet Explorer with correct "Windows" path XPATH="$(cygpath -w "${PWD}/$1")"; echo $XPATH c:/program\ files/internet\ explorer/iexplore.exe $XPATH & #!/bin/sh # wopera # description : Launch Opera with correct "Windows" path XPATH="$(cygpath -w "${PWD}")"; echo $XPATH c:/program\ files/Opera75/opera.exe $XPATH/$1 & #!/bin/sh # wpdf # description : Launch Acrobat Reader with correct "Windows" path XPATH=`cygpath -w "${1}"`; echo $XPATH C:/Program\ Files/Adobe/Acrobat\ 6.0/Reader/AcroRd32.exe $XPATH & #!/bin/sh # wxls # description : Launch Excel with correct "Windows" path XPATH="$(cygpath -w "${1}")"; echo $XPATH c:/program\ files/Microsoft\ Office/Office10/EXCEL.EXE $XPATH & #!/bin/sh # wdoc # description : Launch Word with correct "Windows" path XPATH="$(cygpath -w "${1}")"; echo $XPATH c:/program\ files/Microsoft\ Office/Office10/winword.exe $XPATH & #!/bin/sh # wmdb # description : Launch Access with correct "Windows" path XPATH="$(cygpath -w "${1}")"; echo $XPATH c:/program\ files/Microsoft\ Office/Office10/MSACCESS.EXE $XPATH zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/