Thanks a lot for all you helps. Alan your tutorial is very helpful But I
have another problem which I will post soon.
On 2/26/07, Alan Gauld [EMAIL PROTECTED] wrote:
Nagendra Singh [EMAIL PROTECTED] wrote
Thanks a lot for all the suggestions. I used the function
subprocess.call (
On 2/26/07, Nagendra Singh [EMAIL PROTECTED] wrote:
Thanks a lot for all the suggestions. I used the function subprocess.call(
'c:\abc.exe c:\data\file1'), but as before the command window opens and
closes very fast a value of 1 is displayed. How do I see the results?? I am
sorry if I sound
Nagendra Singh [EMAIL PROTECTED] wrote
Thanks a lot for all the suggestions. I used the function
subprocess.call ( 'c:\abc.exe c:\data\file1'), but as before
the command window opens and closes very fast
a value of 1 is displayed. How do I see the results??
The result is 1 which indicates
Rikard Bosnjakovic [EMAIL PROTECTED] wrote
How can I get python to display
the results in the interactive window or what is the right way to
do this.
Use os.popen:
As Rikard, Richard and Hugo have pointed out there are
numerous ways to do this in Python.
The officially sanctioned way
Hi,
I am trying to learn Python and have no prior programming experience. My
problem is that I am trying to call an .exe through Python, the exe gives
certain information about a file when I simply type it at the command
prompt, something like C: getinfo C:\Singh\abc.bcd and it displays the
Hi,
Take a lok=ok at the module named subprocess. You can catch the output
of invoked programs with this.
There is also a module called commands but it its not available in
windows.
Hugo
___
Tutor maillist - Tutor@python.org
On 2/22/07, Nagendra Singh [EMAIL PROTECTED] wrote:
What it does is that opens and closes the command window really fast and
displays a value of 1 in the interpreter. How can I get python to display
the results in the interactive window or what is the right way to do this.
I assume you're
On 2/22/07, Nagendra Singh [EMAIL PROTECTED] wrote:
How can I get python to display
the results in the interactive window or what is the right way to do this.
Use os.popen:
http://docs.python.org/lib/os-newstreams.html#os-newstreams
--
- Rikard.
How do you run a .exe from inside a python
program.
randomexample:
print "What would you like to do today?
" print "E - email" print "I -
internet" what = input("Choose: ")
if what == "E":
Heres where i
would need torun IEXPLORE.exe
___
Tutor
Robin Buyer wrote:
How do you run a .exe from inside a python program.
random example:
print What would you like to do today?
print E - email
print I - internet
what = input(Choose: )
if what == E:
Heres where i would need to run IEXPLORE.exe
Look at os.system()
The internet was just an example. I'm just looking at how to open .exe from
python.
- Original Message -
From: Liam Clarke-Hutchinson [EMAIL PROTECTED]
To: 'Robin Buyer' [EMAIL PROTECTED]; tutor@python.org
Sent: Thursday, December 22, 2005 7:35 PM
Subject: RE: [Tutor] running a .exe
Hi
Robin Buyer wrote:
I created a small program to test os.system:
import os.path
os.system(C:\Program Files\Internet Explorer\IEXPLORE.EXE)
when i run this from the command line I get an error message:
'C:\Program' is not recognized as an internal or external command, operable
program or
Ahh. That helps a lot. Thanks.
-Robin
- Original Message -
From: Kent Johnson [EMAIL PROTECTED]
To: Python Tutor tutor@python.org
Sent: Thursday, December 22, 2005 7:46 PM
Subject: Re: [Tutor] running a .exe
Robin Buyer wrote:
I created a small program to test os.system
13 matches
Mail list logo