path parameter via cmd batch?

Andrey Repin anrdaemon@yandex.ru
Sun Apr 22 13:35:00 GMT 2018


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... ТŇĐĐĄ&ö&ĆVŇ&W÷'G3˘‡GG˘ňö7–wv–âć6öŇ÷&ö&ĆV×2ć‡FÖŔФd˘‡GG˘ňö7–wv–âć6öŇöfđФFö7VÖVçFF–ö㢇GG˘ňö7–wv–âć6öŇöFö72ć‡FÖŔĐĄVç7V'67&–&R–ćfó˘‡GG˘ňö7–wv–âć6öŇöÖÂň7Vç7V'67&–&R×6–×ĆPĐ Đ


More information about the Cygwin mailing list