4
votes
2answers
704 views

How do you have shared log files under Windows?

I have several different processes and I would like them to all log to the same file. These processes are running on a Windows 7 system. Some are python scripts and others are cmd batch files. Under ...
1
vote
2answers
407 views

How to write a batch file showing path to executable and version of Python handling Python scripts on Windows?

It should display path to executable and version of Python for scripts run with direct invocation of Python (python myscript.py) as well as for scripts run directly (myscript.py). Script should not ...
5
votes
4answers
3k views

Can a python script persistently change a Windows environment variable? (elegantly)

Following on from my previous question, is it possible to make a Python script which persistently changes a Windows environment variable? Changes to os.environ do not persist once the python ...
3
votes
4answers
9k views

python as a “batch” script (i.e. run commands from python)

I'm working in a windows environment (my laptop!) and I need a couple of scripts that run other programs, pretty much like a windows batch file. how can I run a command from python such that the ...
5
votes
1answer
1k views

Python on Windows: Run multiple programs sequentially in one command prompt

I need to run multiple programs one after the other and they each run in a console window. I want the console window to be visible, but a new window is created for each program. This is annoying ...
2
votes
2answers
3k views

Script to change ip address on windows

I use my computer to communicate with a piece of hardware via ethernet. To communicate with this device I set my ip to 192 168 0 11, subnet mask to 255 255 255 0, and default gateway to 192 168 0 1 ...
11
votes
5answers
1k views

Python utilizing multiple processors

Lets say I have a big list of music of varying length that needs to be converted or images of varying sizes that need to be resized or something like that. The order doesn't matter so it is perfect ...
6
votes
4answers
4k views

Extracting columns from text file using Perl one-liner: similar to Unix cut

I'm using Windows, and I would like to extract certain columns from a text file using a Perl, Python, batch etc. one-liner. On Unix I could do this: cut -d " " -f 1-3 <my file> How can I do ...
2
votes
2answers
1k views

Python script with arguments for command line Blender

I'm new to blender and python. I have a blender model (.blend) that I want to batch-render as several images providing some properties for each image. I wrote a python script with those parameters, ...
2
votes
3answers
481 views

keep multiple cmd windows open from batch

How can I make a batch file execute multiple (Python) scripts sequentially, each in their own window, and keep all those windows open upon completion? Right now, my batch is something like: python ...
2
votes
2answers
239 views

Can't fail SVN pre-commit script with Windows server

I`m writing an SVN pre-commit.bat file which calls a Python script to query our issue tracking system to determine of the user-supplied issue tracking ID is in the correct state (e.g. "open" state) ...
1
vote
1answer
120 views

trigger tab completion for python batch process built around readline

Background: I have a python program that imports and uses the readline module to build a homemade command line interface. I have a second python program (built around bottle, a web micro-framework) ...
1
vote
2answers
806 views

Python - cxfreeze keeps saying file/directory non-existant

I've got some very basic code which works, and I want to turn it into an exe. Since I'm using Python 3 because it seems so much cleaner than other Python editions, I've not been able to use Py2Exe, ...
0
votes
1answer
88 views

Optimizing or speeding up reading from .xy files into excel

I have a few .xy files (2 columns with x and y values). I have been trying to read all of them and paste the "y" values into a single excel file (The "x" values are the same in all these files). The ...