Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Launcher, and ftype Python.File Date: Wed, 18 Nov 2015 05:52:57 -0500 Lines: 47 Message-ID: References: <564C32F3.2070909@g.nevcal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ouOcW5nXQt8Ma2fKYWYkfQvrUBsm2a/lzknWEDWtnpKg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'works.': 0.07; '-of': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'sfxlen:2': 0.10; 'python': 0.10; 'jan': 0.11; '(other': 0.16; '.py': 0.16; 'enlighten': 0.16; 'help?': 0.16; 'intended,': 0.16; 'invoking': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'tool.': 0.16; 'wrote:': 0.16; 'employer.': 0.18; 'steve': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'machine': 0.21; 'do.': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; 'wrote': 0.23; 'header:In- Reply-To:1': 0.24; 'feature': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'installed': 0.26; 'header:X-Complaints-To:1': 0.26; 'entered': 0.27; 'turns': 0.27; 'accidentally': 0.29; 'end,': 0.29; "i'm": 0.30; 'mention': 0.30; 'guess': 0.31; 'noticed': 0.32; 'skip:. 10': 0.32; 'maybe': 0.33; 'usually': 0.33; 'surprised': 0.33; 'file': 0.34; 'ones': 0.35; 'skip:p 30': 0.35; 'but': 0.36; 'there': 0.36; 'received:71': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'being': 0.37; 'setting': 0.37; 'received:org': 0.37; 'available.': 0.37; 'seem': 0.37; 'difference': 0.38; 'files': 0.38; 'google': 0.39; 'why': 0.39; 'does': 0.39; "didn't": 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'term': 0.60; 'programs': 0.62; 'above,': 0.63; 'listings': 0.63; 'our': 0.64; 'between': 0.65; 'glenn': 0.84; 'listings,': 0.84; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-71-185-227-36.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <564C32F3.2070909@g.nevcal.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98958 On 11/18/2015 3:12 AM, Glenn Linderman wrote: > Setting up a new machine with Windows 10, I installed Python 3.5.0 and > the Launcher. Invoking python files from batch files as > > foo.py -a -bunch -of -parameters > > Didn't seem to do _anything_ so I checked: > > d:\>assoc .py > .py=Python.File > > d:\>ftype Python.File > Python.File="C:\Windows\py.exe" "%L" %* Verified on my Win 10 > I'm surprised by the "%L" where usually programs have "%1". Is this a > new Windows feature I don't know about yet, or is it a bug in the > installer for the Launcher? It puzzles me tool. However, it works. > ftype /? does not enlighten me that there is a new %L feature available. I accidentally entered just 'ftype' and since WMP11 listings are at the end, noticed that they also use %L. I also see that WMP11 listings are the only ones (other than Python.*) using %L. Not even other MS listings, as for IE, do. After entering 'ftype /?' as intended, I see that %0 and %1 are synonyms for the first word == the file being launched. I also did not find mention of %L. My guess is 'L' is a new term for 'Launched file'. Steve Dower, who wrote the 3.5 intaller, would know about it as a MS employer. Steve, can you verify the above, and maybe tell whoever to update the ftype help? Is there any difference (other than our puzzlement) between using %1 and %L? > Turns out I had an empty file named foo.py and that is why it didn't do > anything, but now I'm just really puzzled about what "%L" means... > Google doesn't support searching for "%L" very well. -- Terry Jan Reedy