X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 To: cygwin AT cygwin DOT com Subject: Re: how to embed shell script within a .BAT file References: <545D3E21 DOT 2030306 AT bopp DOT net> <0D835E9B9CD07F40A48423F80D3B5A702E839BB9 AT USA7109MB022 DOT na DOT xerox DOT 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