X-Recipient: archive-cygwin AT delorie DOT com 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 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 3 Aug 2010 09:27:14 +0200 Message-ID: Subject: Re: How to pass parameters to a windows application From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 AT 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