X-Recipient: archive-cygwin@delorie.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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; q=dns; s=default; b=SrzED
	Hy6XE837TWUVFXG5x8sXjmv6wz+1y2aFUp0agqZr0V6peiKz3LZHyu2AYIDssX2K
	NxjRFcuzCRRQoMt2CIPlf5J/HZMnj727GcPoAgWSYake0b16jq/9/7wB4+CJgl4s
	wjYj4PIkIAe+vZ0jiXb3c8V81Ast1/8525eMGY=
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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; s=default; bh=i7/W31Zjw36
	V5rPj6q2dIb5NnQY=; b=QOiEu6PMsp8+NNYt1TbWj8DlLnNP1cbOynXnYYZb8nc
	pc3hB7iyFBuw5Zx8D7rcLnrDQveH8CQpGNMWGj7EoswWge6+6HjK0x+UIEhsZtMO
	nKLe4Xo24Oda64uwiFTCI1usxf01vvCWI8W3rBWwHaeVJLGYuu8sprPE0uTavux8
	=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-in-03.arcor-online.net
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-01.arcor-online.net DFEFF5A072
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: how to embed shell script within a .BAT file
References: <545D3E21.2030306@bopp.net>	<0D835E9B9CD07F40A48423F80D3B5A702E839BB9@USA7109MB022.na.xerox.net>
Date: Mon, 10 Nov 2014 19:09:19 +0100
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E839BB9@USA7109MB022.na.xerox.net>	(Kenneth Nellis's message of "Mon, 10 Nov 2014 14:49:09 +0000")
Message-ID: <87bnoforlc.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain

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

