delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/01/19:42:12

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
Message-ID: <3F021C46.C8F4CE31@dessent.net>
Date: Tue, 01 Jul 2003 16:41:58 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
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> <Xns93ABB16F2D760soren1Gmane AT 80 DOT 91 DOT 224 DOT 249>

Soren A wrote:

> 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? ;-)

I haven't been able to find a good reference for this, but the windows
shell passes command line parameters in %1 %2 %3 ... etc.  You can use
%* to mean "all parameters."  I think by default it tries to use
short-filenames in some cases, and so %L means the same as %1 except it
uses long file names.  There are others, like %I which I think passes a
CLSID of some kind.

I've searched the platform SDK in vain for a reference to this stuff,
the above is what I've been able to piece together.  Anyone know of a
better source?

Brian

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