delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/01/17:26:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Soren A <somian AT adelphia DOT net>
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
Date: Tue, 1 Jul 2003 21:26:03 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 56
Message-ID: <Xns93ABB16F2D760soren1Gmane@80.91.224.249>
References: <3EFE120B DOT 58A0C79E AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 44 DOT 0306282234360 DOT 22307-100000 AT slinky DOT cs DOT nyu DOT edu> <20030701040434 DOT GE7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net> <3F018740 DOT B28F53DC AT dessent DOT net> <3F018D6C DOT EA1226CA AT dessent DOT net>
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Xnews/L5
X-Archive: encrypt

Brian Dessent <brian AT dessent DOT net> wrote around 01 Jul 2003
news:3F018D6C DOT EA1226CA AT dessent DOT net: 

> Brian Dessent wrote:
> 
>> Save this as a text file ending in .txt and then open it:
> 
> I meant .REG not .TXT.. silly.
> 
> Brian

That's OK: you are reaching an initiated person here (although goog to 
correct the erratum for archival reasons).

I do have a puzzlement, sorry if it seems like I am not sufficiently 
trustful (but anything having to do with making changes to my Windows 
Registry sets off "max caution" alarms, as it of course should).

(Previously you wrote:)
> Replace your cygwin path as appropriate. Use "%1" instead of "%l" to
> get the short-filename version.  As written above, you'll get values
> such as "/cygdrive/c/Program Files/Microsoft Visual Studio" copied to
> the clipboard, the space might be problematic.  With "%1" you get
> something like "/cygdrive/c/PROGRA~1/MIAF9D~1". 

Where does this distinction between the letter "%l" (that's percent-symbol 
followed by alphabetic letter "L" in lowercase) and the string of tokens 
"%1" (that's percent-1, numeral "one" symbol), come from? Is this some 
in(f|t)ernal MS Windows Registry thing? ;-)
 
>> -----
>> REGEDIT4
>> 
>> [HKEY_CLASSES_ROOT\Directory\shell\CygPath]
>> @="&Copy Cygwin Path"
>> 
>> [HKEY_CLASSES_ROOT\Directory\shell\CygPath\Command]
>> @="c:\\cygwin\\bin\\bash -c \"echo -n `/bin/cygpath -u
>> '%l'`>/dev/clipboard\"" 
>> 
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath]
>> @="&Copy Cygwin path"
>> 
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\CygPath\command]
>> @="c:\\cygwin\\bin\\bash -c \"echo -n `/bin/cygpath -u
>> '%l'`>/dev/clipboard\"" -----


Much appreciated.
  Soren A.

-- 
"So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?"
                       - Dr. Jumba, Disney's "Lilo & Stitch"
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019