delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/02/02:50:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <E2B92C7CBBA64B158FA61FDD9DDC20BC@phoenix>
References: <E2B92C7CBBA64B158FA61FDD9DDC20BC AT phoenix>
Date: Sun, 1 Aug 2010 23:49:48 -0700
Message-ID: <AANLkTinVYGVHP9W8w-j1gudobfqZX1aNza0n2XoxqiqC@mail.gmail.com>
Subject: Re: How to pass parameters to a windows application
From: Dave Hylands <dhylands AT gmail DOT com>
To: cygwin AT cygwin DOT 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

Hi Jason,

On Sun, Aug 1, 2010 at 5:43 PM, Jason Pyeron <jpyeron AT pdinc DOT us> 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".

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
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