From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23906 invoked by alias); 3 Aug 2010 07:27:24 -0000 Received: (qmail 23892 invoked by uid 22791); 3 Aug 2010 07:27:23 -0000 X-SWARE-Spam-Status: No, hits=-1.7 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 Received: from mail-ew0-f43.google.com (HELO mail-ew0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Aug 2010 07:27:16 +0000 Received: by ewy1 with SMTP id 1so2300737ewy.2 for ; Tue, 03 Aug 2010 00:27:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.29.65 with SMTP id p1mr5199225ebc.36.1280820434277; Tue, 03 Aug 2010 00:27:14 -0700 (PDT) Received: by 10.213.16.204 with HTTP; Tue, 3 Aug 2010 00:27:14 -0700 (PDT) In-Reply-To: References: Date: Tue, 03 Aug 2010 07:27:00 -0000 Message-ID: Subject: Re: How to pass parameters to a windows application From: Csaba Raduly To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-08/txt/msg00051.txt.bz2 On Mon, Aug 2, 2010 at 2:43 AM, 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"" > > jpyeron@phoenix /projects/crisfield > $ cmd /c "\"start \"\" \"C:\\Documents and Settings\\All > Users\\Desktop\\projects\\crisfield\\trunk\\etc\"\"" > The filename, directory name, or volume label syntax is incorrect. (snip) cygstart was already suggested; if it doesn't help, try single quotes : $ cmd /c start 'C:\Documents and Settings\All Users\...' Bash uses backslashes as the escape character so \trunk ends up as runk. Single quotes prevent bash from interpreting backslashes and spaces. -- Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- 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