This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Win 2000 : Open Files With Word & Excel From The Command Line
- From: Michael Schaap <cygwin at mscha dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 15 Feb 2003 18:32:33 +0100
- Subject: Re: Win 2000 : Open Files With Word & Excel From The Command Line
- References: <5.2.0.9.2.20030214211012.0294ea38@pop3.cris.com>
On 15-Feb-2003 06:14, Randall R Schulz wrote:
Steve,
Double damn!
Or maybe... Third time's the charm. Yeah, that's it!
-==-
#!/bin/bash
wwArgs=()
for arg; do
wwArgs[${#wwArgs[@]}]="$(cygpath -m "$arg")"
done
exec "/cygdrive/c/Program Files/Microsoft Office/Office/winword.exe"
"${wwArgs[@]}"
-==-
Or maybe...
-==-
#/bin/sh
for arg; do
cygstart $arg
done
-==-
- Michael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/