From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3563 invoked by alias); 6 Feb 2014 22:37:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3553 invoked by uid 89); 6 Feb 2014 22:37:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f172.google.com Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com) (209.85.217.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 06 Feb 2014 22:37:34 +0000 Received: by mail-lb0-f172.google.com with SMTP id c11so2039237lbj.31 for ; Thu, 06 Feb 2014 14:37:31 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.22.102 with SMTP id c6mr7597051laf.27.1391726251033; Thu, 06 Feb 2014 14:37:31 -0800 (PST) Received: by 10.114.57.9 with HTTP; Thu, 6 Feb 2014 14:37:30 -0800 (PST) In-Reply-To: References: <1737153647.9966666.1391712802938.JavaMail.root@ptd.net> Date: Thu, 06 Feb 2014 22:37:00 -0000 Message-ID: Subject: Re: Newbie Cygdrive questions From: David Conrad To: cygwin@cygwin.com Cc: mrushton Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00119.txt.bz2 It may be useful to know, if you do not already, that the cygpath utility can be used to convert between Windows and Unix paths. cygpath -u X:/INBOUND/CWSCRIPTS/myscript.sh will give you /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh, and cygpath -w /cygdrive/x/INBOUND/CWSCRIPTS/myscript.sh will give you X:\INBOUND\CWSCRIPTS\myscript.sh You can also use cygpath -m if you prefer forward slashes, even in your Windows paths. On Thu, Feb 6, 2014 at 3:03 PM, Richard wrote: > > On Thu, 6 Feb 2014, mrushton wrote: >> >> >> To access this shared X drive under Cygwin it seems I have to do this : >> >> /cygdrive/X/INBOUND/CWSCRIPTS/myscript.sh >> >> >> Is this correct ? Is there a better way ? >> >> And C: seems to be /cygdrive/C/ >> > > A BETTER way? > > This has nothing per se to do with Cygwin, but, briefly: > > Standardize all your systems on something YOU can control. For example, I > always create a top-level directory called l (that's the letter, not the > numeral) which stands for "local", and another called nfs, which simply > means a remote mount - could be real nfs or Samba - and then make links > within these directories to wherever they need to go. That way, all disk > space is available via either: > > /l/ > > or > > /nfs/ > > as appropriate. > > And there's never any confusion over which is which - and drive letters can > be completely avoided as desired, or not. > > ...All (many!) good System Administrators do things similar to this... > > Richard > > > -- > 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 > -- 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