This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to embed shell script within a .BAT file
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Mon, 10 Nov 2014 19:09:19 +0100
- Subject: Re: how to embed shell script within a .BAT file
- Authentication-results: sourceware.org; auth=none
- References: <545D3E21 dot 2030306 at bopp dot net> <0D835E9B9CD07F40A48423F80D3B5A702E839BB9 at USA7109MB022 dot na dot xerox dot net>
Nellis, Kenneth writes:
> Jeremy's solution is closest to what I was looking for; however
> I need it to work from a networked, non-drive-mapped folder.
> (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could
> pipe a script into bash.
The solution to the UNC path problem is to put something
PUSHD %~dp0
near the beginning of the script. That is if you really want to have
.bat files and click on them in Explorer. Associating the shell scripts
properly so that Explorer will hand them to Cygwin sounds like a better
solution to me.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada
--
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