Re: windows bat file question

2005-03-04 Thread Peter Hansen
Duncan Booth wrote: Peter Hansen wrote: Unfortunately, Google makes it hard to search for such things, but after a while I was able to dig up this master reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddoc s/en-us/percent.mspx You will find even more information if y

Re: windows bat file question

2005-03-04 Thread Alan Gauld
On 4 Mar 2005 10:18:08 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > You will find even more information if you try 'set /?' or 'for /?' at a > command prompt. As you say, you can now do quite complicated scripting in > command files but it needs masochism second only to Perl programming. And u

Re: windows bat file question

2005-03-04 Thread Duncan Booth
Peter Hansen wrote: > Unfortunately, Google makes it hard to search for such things, > but after a while I was able to dig up this master reference: > > http://www.microsoft.com/resources/documentation/windows/xp/all/proddoc > s/en-us/percent.mspx You will find even more information if you try

Re: windows bat file question

2005-03-03 Thread Peter Hansen
Duncan Booth wrote: Peter Hansen wrote: This should make it work: python %0.bat %* Only, among other issues, if you type the full path to the batch file, or if it's in the current directory. This approach fails if you put the batch file in a directory somewhere along your path. The simplest fix,

Re: windows bat file question

2005-03-03 Thread Duncan Booth
Peter Hansen wrote: >> This should make it work: >> python %0.bat %* > > Only, among other issues, if you type the full path to the > batch file, or if it's in the current directory. This > approach fails if you put the batch file in a directory > somewhere along your path. The simplest fix,

Re: windows bat file question

2005-03-03 Thread Peter Hansen
Tim Roberts wrote: Tom Willis <[EMAIL PROTECTED]> wrote: rem = """-*-Python-*- script @echo off rem DOS section rem You could set PYTHONPATH or TK environment variables here python %* This should make it work: python %0.bat %* Only, among other issues, if

Re: windows bat file question

2005-03-02 Thread Tim Roberts
Tom Willis <[EMAIL PROTECTED]> wrote: >I'm trying to get pylint running on windows and the bat file for it >seems a little screwy. I'm hoping someone may have figured this out >already. > >rem = """-*-Python-*- script >@echo off >rem DOS section >rem You c

Re: windows bat file question

2005-03-01 Thread Peter Hansen
Tom Willis wrote: I figured it out. I just took the embedded python code that was in the batch file distributed with it and put it in it's own module. Really my question was how would this ever work? It seems to me to be a little screwy, but it would be handy to know if this was some sort of conven

Re: windows bat file question

2005-03-01 Thread Steve Holden
Tom Willis wrote: On Tue, 01 Mar 2005 10:12:29 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: Tom Willis wrote: I'm trying to get pylint running on windows and the bat file for it seems a little screwy. I'm hoping someone may have figured this out already. ... All I get is the python prompt, the li

Re: windows bat file question

2005-03-01 Thread Tom Willis
On Tue, 01 Mar 2005 10:12:29 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: > Tom Willis wrote: > > I'm trying to get pylint running on windows and the bat file for it > > seems a little screwy. I'm hoping someone may have figured this out > > already. > > ... > > All I get is the python prompt, th

Re: windows bat file question

2005-03-01 Thread Peter Hansen
Tom Willis wrote: I'm trying to get pylint running on windows and the bat file for it seems a little screwy. I'm hoping someone may have figured this out already. ... All I get is the python prompt, the lines starting at import sys don't run. If I throw the lines in a python script, I run into pat

windows bat file question

2005-03-01 Thread Tom Willis
I'm trying to get pylint running on windows and the bat file for it seems a little screwy. I'm hoping someone may have figured this out already. rem = """-*-Python-*- script @echo off rem DOS section rem You could set PYTHONPATH or TK environment variables