By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

pythonwin from dos

P: n/a
hi,
how is it possible to run a python script in the pythonwin
environment from dos command line?
If I use the command "/run scriptname.py" and the pythonwin is already
opened I get error, so someone can help me?

thanks
Alberto
Jul 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Alberto Mantovani" <al*********************@bologna.marelli.it> wrote in
message news:3f***************@powernews.libero.it...
hi,
how is it possible to run a python script in the pythonwin
environment from dos command line?
If I use the command "/run scriptname.py" and the pythonwin is already
opened I get error, so someone can help me?
Why do you want to run it in Pythonwin? To run a script from
one of the command lines, the correct command is:

python scriptname.py parameters....

Of course, python.exe has to be on the path.

John Roth
thanks
Alberto

Jul 18 '05 #2

P: n/a
On Thu, 25 Sep 2003 12:40:10 -0400, "John Roth"
<ne********@jhrothjr.com> wrote:

"Alberto Mantovani" <al*********************@bologna.marelli.it> wrote in
message news:3f***************@powernews.libero.it...
hi,
how is it possible to run a python script in the pythonwin
environment from dos command line?
If I use the command "/run scriptname.py" and the pythonwin is already
opened I get error, so someone can help me?


Why do you want to run it in Pythonwin? To run a script from
one of the command lines, the correct command is:

python scriptname.py parameters....


I know this, but my problem is to run the script in pythonwin from dos
when pythonwin is already opened.
Jul 18 '05 #3

P: n/a

"Alberto Mantovani" <al*********************@bologna.marelli.it> wrote in
message news:3f**************@powernews.libero.it...
On Thu, 25 Sep 2003 12:40:10 -0400, "John Roth"
<ne********@jhrothjr.com> wrote:

"Alberto Mantovani" <al*********************@bologna.marelli.it> wrote in
message news:3f***************@powernews.libero.it...
hi,
how is it possible to run a python script in the pythonwin
environment from dos command line?
If I use the command "/run scriptname.py" and the pythonwin is already
opened I get error, so someone can help me?


Why do you want to run it in Pythonwin? To run a script from
one of the command lines, the correct command is:

python scriptname.py parameters....


I know this, but my problem is to run the script in pythonwin from dos
when pythonwin is already opened.


Look in the registry and find out how Pythonwin handles the command
from the shell, then do the same thing.

John Roth
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.