This is the mail archive of the
cygwin
mailing list for the Cygwin project.
path parameter via cmd batch?
- From: Ulli Horlacher <framstag at rus dot uni-stuttgart dot de>
- To: cygwin at cygwin dot com
- Date: Tue, 17 Apr 2018 17:35:28 +0200
- Subject: path parameter via cmd batch?
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@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF:<20180417153528.GA11214@rus.uni-stuttgart.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