delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4990D89F.3030309@bmts.com> |
Date: | Mon, 09 Feb 2009 20:30:07 -0500 |
From: | Ralph Hempel <rhempel AT bmts DOT com> |
User-Agent: | Thunderbird 2.0.0.6 (X11/20071022) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat") |
References: | <4990B031 DOT 4050807 AT tlinx DOT org> <4990B128 DOT 7030004 AT cygwin DOT com> <4990CB8D DOT 3050704 AT tlinx DOT org> <4990D05A DOT 4050202 AT cygwin DOT com> |
In-Reply-To: | <4990D05A.4050202@cygwin.com> |
X-brucetelecom.com-MailScanner-Information: | Please contact Bruce Telecom 519.368.2000 for more information |
X-brucetelecom.com-MailScanner: | Found to be clean |
X-brucetelecom.com-MailScanner-From: | rhempel AT bmts DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------010101010700010608030805 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Here's how I do it in a little batch file that I put on my USB pen drive: It's in the attached .TXT file - you'll need to rename it to .BAT Note that this batch file will OVERWRITE your fstab so please review it before installing and using it on your system. Basically, it lets me carry Cygwin on a USB stick and it does not care what drive letter it's attached as. Note also that USB sticks are slowwww, so it's just for emergencies :-) Ralph --------------010101010700010608030805 Content-Type: text/plain; name="usbCygwin.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="usbCygwin.txt" QEVDSE8gT0ZGDQpSRU0gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0N ClJFTSBCYXRjaCBmaWxlIHRvIHN0YXJ0IEN5Z3dpbiBvbiBhcmJpdHJhcnkg ZHJpdmUgbGV0dGVycw0KDQpTRVRMT0NBTA0KICBGT1IgL0YgJSVEIElOICgi JUNEJSIpIERPIFNFVCBDWUdEUklWRT0lJX5kRA0KDQpSRU0gLS0gQ2hlY2sg aWYgd2UndmUgYWxyZWFkeSBtb2RpZmllZCB0aGUgZnN0YWIgZm9yIHRoaXMg ZHJpdmUgbGV0dGVyDQogIElGICIlQ1lHRFJJVkUlIj09IiVDWUdXSU5fRFJJ VkUlIiBHT1RPIDpET05FDQoNClJFTSAtLSBDaGVjayBpZiB0aGUgb3JpZ2lu YWwgZnN0YWIgaGFzIGJlZW4gYmFja2VkIHVwDQogIElGIEVYSVNUICVDWUdE UklWRSVcY3lnd2luVGVzdFxldGNcZnN0YWIub3JpZ2luYWwgR09UTyBNQUtF RlNUQUINCiAgICBjb3B5ICVDWUdEUklWRSVcY3lnd2luVGVzdFxldGNcZnN0 YWIgJUNZR0RSSVZFJVxjeWd3aW5UZXN0XGV0Y1xmc3RhYi5vcmlnaW5hbA0K DQpSRU0gLS0gU2V0IHVwIHRoZSBkZWZhdWx0IGZzdGFiDQo6TUFLRUZTVEFC DQogIGVjaG8gIyBDdXN0b20gZnN0YWIgZm9yIHJlbW92YWJsZSBtZWRpYSAg ICAgICAgICAgICAgICAgID4gICVDWUdEUklWRSVcY3lnd2luVGVzdFxldGNc ZnN0YWINCiAgZWNobyAjIFNlZSAvY3lnd2luL2V0Yy9mc3RhYi5vcmlnaW5h bCBmb3IgZGVmYXVsdHMgICAgICA+PiAgJUNZR0RSSVZFJVxjeWd3aW5UZXN0 XGV0Y1xmc3RhYg0KICBlY2hvICVDWUdEUklWRSUvY3lnd2luVGVzdCAgICAg LyAgICAgICAgbnRmcyBiaW5hcnkgMCAwID4+ICAlQ1lHRFJJVkUlXGN5Z3dp blRlc3RcZXRjXGZzdGFiDQogIGVjaG8gJUNZR0RSSVZFJS9jeWd3aW5UZXN0 L2JpbiAvdXNyL2JpbiBudGZzIGJpbmFyeSAwIDAgPj4gICVDWUdEUklWRSVc Y3lnd2luVGVzdFxldGNcZnN0YWINCiAgZWNobyAlQ1lHRFJJVkUlL2N5Z3dp blRlc3QvbGliIC91c3IvbGliIG50ZnMgYmluYXJ5IDAgMCA+PiAgJUNZR0RS SVZFJVxjeWd3aW5UZXN0XGV0Y1xmc3RhYg0KDQpyZW0gLS0gU3RhcnQgdXAg dGhlZGVmYXVsdCBzaGVsbA0KICBjaGRpciAlQ1lHRFJJVkUlXGN5Z3dpblRl c3RcYmluDQogIGJhc2ggLS1sb2dpbiAtaQ0KDQpFTkRMT0NBTA0KDQo6RE9O RQ0KDQpSRU0gV2UncmUgZG9uZSB3aXRoIHRoZSBsb2NhbCB2YXJpYWJsZXMs IGJ1dCByZW1lbWJlciB0byBzZXQNClJFTSBhIHZhcmlhYmxlIHRoYXQgdGVs bHMgdXMgdGhlIGRyaXZlIEN5Z3dpbiBpcyBydW5uaW5nIG9uDQoNCiAgU0VU IENZR1dJTl9EUklWRT0lQ1lHRFJJVkUlDQoNCkVYSVQgL0IgMA0K --------------010101010700010608030805 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------010101010700010608030805--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |