X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=Faz4CcoHNGNCfBsAgmfSdyemgPdZW hMu4ORldZGspoTQlRZaC20m9teN9m8ICENCi3MOnkbHeP3jydIKxUdkiL9JljRjw LBViFaU57EwDneWKWV0MJlSe+AGRJ833INQ14bTZnRLNPU1Aqql+EKSwcpbf5vaq qSFJd2I724RSEg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=VG4PC1yos7GAFUOnu0niY5sEnL8=; b=HmN l2CLq++iwlQEppONs0KswZu26Fqo0ZqCmxuQcXQKfO+0xUoWn432EiitajKVBUC8 6xCo6K7pee7QL4XUEJEFfJgObuyDyrCJXyBY4oAAaq7aLYY1TTShfTxlc3iRlFnU CF2+4qGt10U2sF+ZvKa69EwN96zDGYcF08zGyE5Y= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=batch, escape, H*MI:uni, H*M:uni X-HELO: smtp02.belwue.de Date: Tue, 17 Apr 2018 17:35:28 +0200 From: Ulli Horlacher To: cygwin AT cygwin DOT com Subject: path parameter via cmd batch? Message-ID: <20180417153528.GA11214@rus.uni-stuttgart.de> Mail-Followup-To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes Note-from-DJ: This may be spam I want to start a cygwin program via a cmd batch script. I have: C:\cygwin>type runcmd.bat @echo off C: chdir C:\cygwin\bin bash --login -c "%*" echo. pause But when I start it I get: C:\cygwin>runcmd.bat xxx \cygwin\runcmd.bat xxx: cannot read cygwinruncmd.bat Press any key to continue . . . I know the problem: the Windows \ path separator is the bash escape character. My programm xxx does not see "\cygwin\runcmd.bat", but "cygwinruncmd.bat", so I cannot convert the path string with xxx. What can I do? The final aim is to have a "send to" service in the windows explorer where I can send any file or directory to xxx for processing. -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher AT tik DOT uni-stuttgart DOT de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/ REF:<20180417153528 DOT GA11214 AT rus DOT uni-stuttgart DOT de> -- 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