Re: launch windows program from shell according to its extension

2005-06-08 Thread Peter Mutsaers
Larry Hall wrote: Sure. Use 'cygstart'. Just what I was looking for. Thanks for the hint. Regards, Peter Mutsaers -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ

Re: launch windows program from shell according to its extension

2005-06-08 Thread Igor Pechtchanski
On Wed, 8 Jun 2005, Andrew DeFaria wrote: > zzapper wrote: > > > On Wed, 8 Jun 2005 10:59:27 -0400 (EDT), wrote: > > > > > > #!/bin/bash > > > > # csn > > > > # description : launch most recent file (head) > > > > # set -x > > > > cygstart $(l\s -t * | head -1) & > > > > > > Make that 'cygstart "$

Re: launch windows program from shell according to its extension

2005-06-08 Thread Andrew DeFaria
zzapper wrote: On Wed, 8 Jun 2005 10:59:27 -0400 (EDT), wrote: #!/bin/bash # csn # description : launch most recent file (head) # set -x cygstart $(l\s -t * | head -1) & Make that 'cygstart "$(/bin/ls -t | head -1)"' (add quotes, otherwise filenames with spaces will not work). Slightly im

Re: launch windows program from shell according to its extension

2005-06-08 Thread Lev Bishop
On 08/06/05, zzapper wrote: > Slightly improved to ignore directories (and assuming that Windows files > always have an extension) > cygstart "$(/bin/ls -t *.* | head -1)" why not cygstart "$(/bin/ls -t . | head -1)" ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem r

Re: launch windows program from shell according to its extension

2005-06-08 Thread zzapper
On Wed, 8 Jun 2005 10:59:27 -0400 (EDT), wrote: >> >> #!/bin/bash >> # csn >> # description : launch most recent file (head) >> # set -x >> cygstart $(l\s -t * | head -1) & > >Make that 'cygstart "$(/bin/ls -t | head -1)"' (add quotes, otherwise >filenames with spaces will not work). Slightly i

Re: launch windows program from shell according to its extension

2005-06-08 Thread Warren Young
zzapper wrote: explorer $XPATH This reminds me: another useful command when jumping between the GUI and the command line, is "explorer ." That opens an Explorer window in the current working directory. Just as some things are easier on the command line, others are easier from the G

Re: launch windows program from shell according to its extension

2005-06-08 Thread Igor Pechtchanski
On Wed, 8 Jun 2005, zzapper wrote: > On Wed, 08 Jun 2005 09:23:53 -0400, wrote: > > >At 03:45 AM 6/8/2005, you wrote: > >>Hello, > >> > >>I have largely replaced usage of windows explorer with a cygwin shell. > >>One thing is cumbersome however: when I encounter, say, a .doc file in > >>a directo

Re: launch windows program from shell according to its extension

2005-06-08 Thread zzapper
On Wed, 08 Jun 2005 09:23:53 -0400, wrote: >At 03:45 AM 6/8/2005, you wrote: >>Hello, >> >>I have largely replaced usage of windows explorer with a cygwin shell. One >>thing >>is cumbersome however: when I encounter, say, a .doc file in a directory, it >>would be nice that I could "launch" this

Re: launch windows program from shell according to its extension

2005-06-08 Thread Larry Hall
At 03:45 AM 6/8/2005, you wrote: >Hello, > >I have largely replaced usage of windows explorer with a cygwin shell. One >thing >is cumbersome however: when I encounter, say, a .doc file in a directory, it >would be nice that I could "launch" this file with the program associated under >windows. > >

Re: launch windows program from shell according to its extension

2005-06-08 Thread Cliff Hones
Peter Mutsaers wrote: > Hello, > > I have largely replaced usage of windows explorer with a cygwin shell. One > thing > is cumbersome however: when I encounter, say, a .doc file in a directory, it > would be nice that I could "launch" this file with the program associated > under > windows. > >

Re: launch windows program from shell according to its extension

2005-06-08 Thread Brian Dessent
Peter Mutsaers wrote: > Is this possible, for example via a utility program kind of "launch file.doc"? Ensure that you have the cygutils package, then "cygstart file.doc". Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.

launch windows program from shell according to its extension

2005-06-08 Thread Peter Mutsaers
Hello, I have largely replaced usage of windows explorer with a cygwin shell. One thing is cumbersome however: when I encounter, say, a .doc file in a directory, it would be nice that I could "launch" this file with the program associated under windows. Is this possible, for example via a utility