delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/02/07:57:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_20,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Jason Pyeron" <jpyeron AT pdinc DOT us>
To: <cygwin AT cygwin DOT com>
References: <E2B92C7CBBA64B158FA61FDD9DDC20BC AT phoenix> <AANLkTinVYGVHP9W8w-j1gudobfqZX1aNza0n2XoxqiqC AT mail DOT gmail DOT com> <AANLkTinSh1+kMob1K4VX-MDLNzu-VLK+VdyLatjkyCZJ AT mail DOT gmail DOT com>
Subject: RE: How to pass parameters to a windows application
Date: Mon, 2 Aug 2010 07:56:37 -0400
Message-ID: <7B35B979DF6941628DE9A6D131AA3909@phoenix>
MIME-Version: 1.0
In-Reply-To: <AANLkTinSh1+kMob1K4VX-MDLNzu-VLK+VdyLatjkyCZJ@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Andy Koppe
> Sent: Monday, August 02, 2010 5:31
> To: cygwin AT cygwin DOT com
> Subject: Re: How to pass parameters to a windows application
> 
> On 2 August 2010 07:49, Dave Hylands wrote:
> >
> > On Sun, Aug 1, 2010 at 5:43 PM, Jason Pyeron wrote:
> >> I am at my wits end trying to figure out how to execute 
> this in bash
> >>
> >> C:\WINDOWS>cmd /c "start "" "C:\Documents and Settings\All 
> >> Users\Desktop\projects\crisfield\trunk\etc""
> >
> > Based on your prompt, I'd say that you're not in bash.
> >
> > cmd /c start "c:\Documents and Settings\"
> >
> > works for me. From the cmd prompt,
> >
> > cmd /c "start "c:\Documents and Settings""
> >
> > works. I wrote a little program called open, 
> > http://www.davehylands.com/Software/Open/
> >
> > which opens files the same way as double clicking on them. It also 
> > translates cygwin paths into Win32 paths if you build the cygwin 
> > version.
> > If passed a directory name, it does the same as choosing "Explore".
> 
> You should both have a look at 'cygstart'.

Hint taken, do not write what already exists. Thanks

It does not play nice with unc paths. Starting by cmd.exe /c start path does.
Suggestions?


jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ cygstart .

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ cygstart //host67/inst
Unable to start '\\?\UNC\host67\inst': There is no application associated with
the given file name extension.

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ start //host67/inst
++ cygpath -wa //host67/inst
+ dir='\\host67\inst'
+ cd 'C:\WINDOWS'
+ cmd /c 'start  \\host67\inst'

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ cygstart doc/design/

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ cygstart test\ dir/

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ cygstart ..

jpyeron AT phoenix /projects/cdnetdb/private/fxiao/cdnet
$ pushd //host67/documents/
//host67/documents /projects/cdnetdb/private/fxiao/cdnet

jpyeron AT phoenix //host67/documents
$ cygstart .
Unable to start '\\?\UNC\host67\documents': There is no application associated
with the given file name extension.

jpyeron AT phoenix //host67/documents
$ start .
++ cygpath -wa .
+ dir='\\host67\documents'
+ cd 'C:\WINDOWS'
+ cmd /c 'start  \\host67\documents'

jpyeron AT phoenix //host67/documents
$



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019