[EMAIL PROTECTED]
Subject: Re: Win 2000 : Open Files With Word & Excel From The Command Line
Date: Fri, 14 Feb 2003 23:48:42 -0500
On Fri, Feb 14, 2003 at 08:42:23PM -0800, Randall R Schulz wrote:
>Oh, and to satisfy Thorsten: This is scripting 101 stuff and is in no
>way Cygwin-spe
Steve,
If you have or are willing to install the cygutils package, then
cygstart is indeed the preferred way to deal with this general problem.
However so that you'll be able to do comparable scripting when cygstart
isn't an option, I'll point out where you went wrong--it's all
erroneous BASH
On Wed Feb 19 16:46:43 2003, Steve wrote:
> Hi;
>
> I managed to get my script "word" to open up word with the path I typed
> on the command line in cygwin.
>
> I am having trouble getting the same to work with excel.
>
> I am win 2000 and using cygwin.
>
> I made a script in /usr/local/bin ca
Hi;
I managed to get my script "word" to open up word with the path I typed
on the command line in cygwin.
I am having trouble getting the same to work with excel.
I am win 2000 and using cygwin.
I made a script in /usr/local/bin called "excel".
The script will boot up excel, but not with the
Michael,
All right, all right. One is enough.
However, your solution is missing quoting of $arg in the "cygstart"
invocation, and that's a Unix-centric practice we like to discourage
around here because of the much greater likelihood of failure under Windows.
Also, cygstart resides in the "cyg
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[
* Steve (03-02-15 04:55 +0100)
> I put script files called "word" and "excel" in my /usr/local/bin. These
> files have the path to the ms word and ms excel executables.
>
> They work, they bring up the apps, but I can't get the apps to take
> command line arguments to open remote files.
>
> For e
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[@]}"
-==-
Randall Schulz
Steve,
Damn. I fo
Steve,
Damn. I forgot the part about converting the argument names from Cygwin
/ POSIX to Windows.
This is better:
-==-
#!/bin/bash
wwArgs=()
for arg; do
wwArgs${#wwArgs@]}]="$(cygpath -w "$arg")"
done
exec "/cygdrive/c/Program Files/Microsoft Office/Office/winword.exe"
"${wwArgs[@]}"
-
On Fri, Feb 14, 2003 at 08:42:23PM -0800, Randall R Schulz wrote:
>Oh, and to satisfy Thorsten: This is scripting 101 stuff and is in no
>way Cygwin-specific.
D'oh! I missed an opportunity to be mean. It didn't even cross my mind.
What is *wrong* with me???
Grumble.
cgf
--
Unsubscribe info:
Steve,
Do your scripts look something like this:
-==-
#!/bin/sh
exec "/cygdrive/c/Program Files/Microsoft Office/Office/winword.exe" "$@"
-==-
If they're missing the "$@" part, they're not passing on the arguments
you give the script to "winword.exe" or "excel.exe". The "exec" part at
the beg
On Fri, Feb 14, 2003 at 10:55:22PM -0500, Steve wrote:
>I put script files called "word" and "excel" in my /usr/local/bin. These
>files have the path to the ms word and ms excel executables.
>
>They work, they bring up the apps, but I can't get the apps to take
>command line arguments to open remot
Hi;
I'm on win 2000 and I am using cygwin.
I put script files called "word" and "excel" in my /usr/local/bin. These
files have the path to the ms word and ms excel executables.
They work, they bring up the apps, but I can't get the apps to take
command line arguments to open remote files.
For e
13 matches
Mail list logo