472,951 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

pythonwin from dos

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
3 2893

"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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stephan | last post by:
Hi, I have python 2.2.3 + pythonwin 156 on win2k. The problem is that german chars like are not handled correctly. Just create a test.py file with the content and edit it with...
7
by: Martin Bless | last post by:
IMHO PythonWin is great help in developing. How can I do something like: if detect("running on PythonWin"): pass # fake arguments ... else: "proceed normal"
14
by: Jive | last post by:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3, but it's still broke. When I start PythonWin, sometimes it looks like it is going to be okay. But as soon as I open...
4
by: Chris P. | last post by:
I've been having a problem with PythonWin that seemed to start completely spontaneously and I don't even know where to START to find the answer. The only thing I can think of that marks the point...
2
by: siggy2 | last post by:
Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive window with a time.sleep(1) and a print before each recursion... I...
2
by: accolades | last post by:
Does anyone else have a problem with Pythonwin crashing after running a python script with graphics libraries? Whenever I use Pythonwin to run a PyGame or PyOgre script, Pythonwin crashes when the...
17
by: Dave Benjamin | last post by:
Hey folks, Why is PythonWin (win32all) still a separate download from a third party? Is it legal, technical, or what? I think it's about time it be part of the standard distribution. There...
3
by: archaegeo | last post by:
I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or...
4
by: sterling | last post by:
I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co =...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.