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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=bNrgKVFytFxkTlDmvbTjhNLLdDgtZGwOw61WKiwp8x+ Xd32Yh3psXyjFac9h2C9pNsgTjy+zFmjEwUzPL3Q0+S07aqwz4gx3HCELnecQQji NiWx9ei/DTUs/lHi9LOI7z5afu28QXrNbbboIbLLF0BlLWLyLwFDAWXtfuv7I348 = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=qC1JhQ2lUOytrzg4gRVo/cvJFmA=; b=tudwQxLm/28EqXDRj tjaTgfmN7/y4rIR/M2WxRIPxkrvLexx4IeTlZb5X1lJiJhrP1GZ6/kpqz2P/7h8L 0Zj/FHWQQ2MmmfaDLU4FpSB0mYlJ65tSX22em+6WZ0ZFsZaEP/GDa2R888Un2KPf DqsBLNOVX/hZMJnMd02g6kdfGQ= 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-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: proxyz15.mailnet.ptd.net Message-ID: <52F42A49.4000806@ptd.net> Date: Thu, 06 Feb 2014 19:35:21 -0500 From: Mike Rushton User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: David Conrad , cygwin AT cygwin DOT com Subject: Re: Newbie Cygdrive questions References: <1737153647 DOT 9966666 DOT 1391712802938 DOT JavaMail DOT root AT ptd DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes That is good to know about that utility Cygpath. Maybe I will try it. What I was doing was going thru some scripts ... changing the paths ... clean in up stuff ... over the years I ended up with a lot of commented out sections of code ... and testing them. And this is a different approach that I never would have thought of. /l/ or /nfs/ Thanks. On 2/6/2014 5:37 PM, David Conrad wrote: > 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