* path parameter via cmd batch?
@ 2018-04-17 15:35 Ulli Horlacher
2018-04-22 13:35 ` Andrey Repin
0 siblings, 1 reply; 2+ messages in thread
From: Ulli Horlacher @ 2018-04-17 15:35 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: path parameter via cmd batch?
2018-04-17 15:35 path parameter via cmd batch? Ulli Horlacher
@ 2018-04-22 13:35 ` Andrey Repin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2018-04-22 13:35 UTC (permalink / raw)
To: Ulli Horlacher, cygwin
Greetings, Ulli Horlacher!
> 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 "%*"
Try
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?
You can not use bash to start your program.
Then you won't be plagued by its mangling.
> 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.
Well… do it?
--
With best regards,
Andrey Repin
Sunday, April 22, 2018 16:24:15
Sorry for my terrible english...\0ТŇĐĐĄ\a&ö&ĆVŇ\a&W\x06÷'G3˘\x02\x02\x02\x02\x02\x02\x06‡GG\x03˘ňö7–wv–âć6öŇ÷\a&ö&ĆV×2ć‡FÖŔФd\x15\x13˘\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03˘ňö7–wv–âć6öŇöf\x17\x12đФFö7VÖVçF\x17F–öă˘\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03˘ňö7–wv–âć6öŇöFö72ć‡FÖŔĐĄVç7V'67&–&R\x06–ćfó˘\x02\x02\x02\x02\x02\x06‡GG\x03˘ňö7–wv–âć6öŇöÖÂň7Vç7V'67&–&R×6–×\x06ĆPĐ Đ
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-22 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 15:35 path parameter via cmd batch? Ulli Horlacher
2018-04-22 13:35 ` Andrey Repin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).