Where does my output go?
Andy McKay
andym at ActiveState.com
Wed Sep 5 12:20:20 EDT 2001
Its to do with your registry settings, look for python.exe in your registry
using regedit and change the setting for open to be sent "%1" instead of %1.
Heres the settings on my box for
HKEY_CLASSES_ROOT\ft000010\shell\Open\command
d:\python21\python.exe -u "%1"
--
d:\>cat test.py
print "hello"
d:\>test
hello
d:\>test > test.txt
d:\>cat test.txt
hello
Cheers.
--
Andy McKay.
"Michael Abbott" <michael at rcp.co.uk> wrote in message
news:Xns91139DA18A194michaelrcpcouk at 194.238.50.13...
> So, I write a small bit of Python (one line):
>
> write.py
> --------
> print 'hello'
> --------
>
> I then run it from the command line:
>
>
> C:\TEMP>ver
>
> Windows NT Version 4.0
>
> C:\TEMP>write
> Hello
>
> C:\TEMP>write >write.txt
>
> C:\TEMP>dir write.txt
> Volume in drive C is SKYLARK
> Volume Serial Number is 2801-8D16
>
> Directory of C:\TEMP
>
> 05/09/01 15:27 0 write.txt
> 1 File(s) 0 bytes
> 1,080,729,088 bytes free
>
> C:\TEMP>
>
> Where did my output go? This is most perplexing!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list