Die neue Computercommunity Compunnity! ist Online!

2007-05-20 Thread News!
Hallo, die neue Community mit dem Thema Computer ist Online! Schau doch mal vorbei! Sonst Verpasst du vielleicht etwas! www.compunnity.de.tt! Wir freuen uns auf deinen Besuch! --- Bitte nicht auf diese Mail antworten!

How to uniformly point to the root of a drive?

2007-05-20 Thread Thorsten Kampe
Hi there, is there a way to consistently point (in a script for instance) to the root of a removable drive (flash drive)? The root could be /cygdrive/g on one computer and on the other /cygdrive/f (I have no control of the drive letters). One solution would be to install Cygwin to \ (instead o

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 04:18:07PM +0100, Thorsten Kampe wrote: >Hi there, > >is there a way to consistently point (in a script for instance) to the >root of a removable drive (flash drive)? > >The root could be /cygdrive/g on one computer and on the other >/cygdrive/f (I have no control of the d

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Brian Dessent
Thorsten Kampe wrote: > is there a way to consistently point (in a script for instance) to the > root of a removable drive (flash drive)? > > The root could be /cygdrive/g on one computer and on the other > /cygdrive/f (I have no control of the drive letters). One solution > would be to install C

RE: How to uniformly point to the root of a drive?

2007-05-20 Thread Dave Korn
On 20 May 2007 16:39, Brian Dessent wrote: > Thorsten Kampe wrote: > >> is there a way to consistently point (in a script for instance) to the >> root of a removable drive (flash drive)? >> >> The root could be /cygdrive/g on one computer and on the other >> /cygdrive/f (I have no control of the

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Brian Dessent
Dave Korn wrote: > This relies on the mountpoints being set correctly, which might not work if > your drive letter changes ... Well if that is the case and / points to the wrong dir then I don't see how you can be using Cygwin at all, so many things will be broken. To get the POSIX path of the

RE: How to uniformly point to the root of a drive?

2007-05-20 Thread Dave Korn
On 20 May 2007 17:11, Brian Dessent wrote: > Dave Korn wrote: > >> This relies on the mountpoints being set correctly, which might not work >> if your drive letter changes ... > > Well if that is the case and / points to the wrong dir then I don't see > how you can be using Cygwin at all, I

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Brian Dessent
Dave Korn wrote: > I'm not sure exactly what Thorsten is looking for in his original question, > so I don't know if it's relevant here or not, but it might be useful for a > portable installation to have a way to detect the drive letter so as to be > able to (re)assign the mountpoints (e.g. from

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 08:39:13AM -0700, Brian Dessent wrote: >Thorsten Kampe wrote: >>is there a way to consistently point (in a script for instance) to the >>root of a removable drive (flash drive)? >> >>The root could be /cygdrive/g on one computer and on the other >>/cygdrive/f (I have no cont

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 09:23:45AM -0700, Brian Dessent wrote: >Dave Korn wrote: >>I'm not sure exactly what Thorsten is looking for in his original >>question, so I don't know if it's relevant here or not, but it might be >>useful for a portable installation to have a way to detect the drive >>let

RE: How to uniformly point to the root of a drive?

2007-05-20 Thread Thorsten Kampe
* Dave Korn (Sun, 20 May 2007 17:16:43 +0100) > On 20 May 2007 17:11, Brian Dessent wrote: > > Dave Korn wrote: > > > >> This relies on the mountpoints being set correctly, which might not work > >> if your drive letter changes ... > > > > Well if that is the case and / points to the wrong dir

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Thorsten Kampe
* Christopher Faylor (Sun, 20 May 2007 12:36:47 -0400) > On Sun, May 20, 2007 at 09:23:45AM -0700, Brian Dessent wrote: > >Dave Korn wrote: > >>I'm not sure exactly what Thorsten is looking for in his original > >>question, so I don't know if it's relevant here or not, but it might be > >>useful fo

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 06:20:51PM +0100, Thorsten Kampe wrote: >* Dave Korn (Sun, 20 May 2007 17:16:43 +0100) >> On 20 May 2007 17:11, Brian Dessent wrote: >> > Dave Korn wrote: >> > >> >> This relies on the mountpoints being set correctly, which might not work >> >> if your drive letter change

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote: >So it sounds like Brian's method would work then wouldn't it? Does this give you what you want, too? driveroot=$(cygpath $(cygpath -wm /)/..) cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem repor

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Thorsten Kampe
* Christopher Faylor (Sun, 20 May 2007 13:27:05 -0400) > On Sun, May 20, 2007 at 06:20:51PM +0100, Thorsten Kampe wrote: > >* Dave Korn (Sun, 20 May 2007 17:16:43 +0100) > >> On 20 May 2007 17:11, Brian Dessent wrote: > >> > Dave Korn wrote: > >> > > >> >> This relies on the mountpoints being se

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Thorsten Kampe
* Christopher Faylor (Sun, 20 May 2007 13:36:16 -0400) > On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote: > >So it sounds like Brian's method would work then wouldn't it? > > Does this give you what you want, too? > > driveroot=$(cygpath $(cygpath -wm /)/..) Yes. -- Unsubscr

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Karl M
Hi All... From: Christopher Faylor Subject: Re: How to uniformly point to the root of a drive? Date: Sun, 20 May 2007 13:36:16 -0400 On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote: >So it sounds like Brian's method would work then wouldn't it? Does this give you what you w

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 05:39:21PM -0700, Karl M wrote: >Hi All... > >>From: Christopher Faylor Subject: Re: How to uniformly point to the root >>of a drive? >>Date: Sun, 20 May 2007 13:36:16 -0400 >> >>On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote: >>>So it sounds like Brian'

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Karl M
Hi Christopher... From: Christopher Faylor Subject: Re: How to uniformly point to the root of a drive? Date: Sun, 20 May 2007 21:21:59 -0400 On Sun, May 20, 2007 at 05:39:21PM -0700, Karl M wrote: >Hi All... > >>From: Christopher Faylor Subject: Re: How to uniformly point to the root >>of a dr

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Christopher Faylor
On Sun, May 20, 2007 at 09:12:47PM -0700, Karl M wrote: >Hi Christopher... > >>From: Christopher Faylor Subject: Re: How to uniformly point to the root >>of a drive? >>Date: Sun, 20 May 2007 21:21:59 -0400 >> >>On Sun, May 20, 2007 at 05:39:21PM -0700, Karl M wrote: >>>Hi All... >>> From: Chri

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Lev Bishop
On 5/20/07, Karl M wrote: Hi All... >From: Christopher Faylor Subject: Re: How to uniformly point to the root of >a drive? >Date: Sun, 20 May 2007 13:36:16 -0400 > >On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote: > >So it sounds like Brian's method would work then wouldn't i

Re: How to uniformly point to the root of a drive?

2007-05-20 Thread Karl M
Hi Christopher... From: Christopher Faylor Subject: Re: How to uniformly point to the root of a drive? Date: Mon, 21 May 2007 00:15:42 -0400 On Sun, May 20, 2007 at 09:12:47PM -0700, Karl M wrote: >Hi Christopher... > >>From: Christopher Faylor Subject: Re: How to uniformly point to the root >