1
vote
1answer
11 views

Opening a network file in Cytoscape using cmd and Python

So I have a python script that produces a networkx graph and exports it as .graphml and I want script to also be able to open cytoscape with the network loaded without any work on the users part. I ...
0
votes
0answers
27 views

How could I see dialogs or type words when running a bat file taking my python file?

My bat file as following, the last line is the most important. echo off REG.exe Query HKLM\Hardware\Description\System\CentralProcessor\0 > checkOS.txt Find /i "x86" < CheckOS.txt > ...
1
vote
2answers
49 views

Open URL “silently” in python or similar

Is there anyway to open a URL in Python without opening a tab in a browser? I have a preconstructed URL which I would like to run when the computer is idle e.g. http://foo.com/bar I've been able to ...
1
vote
1answer
21 views

Python localhost and SASS

I am trying to combine all of my command line commands into a single .bat file, the only commands I am using are: python manage.py runserver 0.0.0.0:8000 --insecure and sass --watch ...
3
votes
3answers
70 views

How to embed python code in batch script

In bash, we can: python - << EOF import os print 'hello' EOF to embed python code snippet in bash script. But in Windows batch, this doesn't work - although I can still use python -c but ...
0
votes
1answer
18 views

Python: using os.execlp() with the path being a variable

I am converting a program from Batch to Python. Here is how I think I could do translate the Batch %VBM% sharedfolder add %VMNAME% --name "LogDir" --hostpath %LogDir% into: os.execlp(VBM, ...
1
vote
4answers
43 views

Indentify running pythonw programs through cmd start

I have 4 .bat-files in the Windows autostart folder for starting the programs Sabnzbd, CouchPotato, SickBeard and Headphones together with Windows. In these batch files I run the Python .py file ...
0
votes
2answers
42 views

modify value of variable in python program from batch file

I have a python file (example.py) to run, which contains 3 variables. I have three .txt files (var1.txt, var2.txt, var3.txt) which contains the values of each of these 3 variables. I want to write a ...
2
votes
2answers
54 views

How to start a file that has a period in front of it?

Im using os.startfile to start a bat but i can't find a way to start a bat file that has a period infront of its name. example of what i want to achieve: import os import subprocess ...
0
votes
2answers
79 views

Python/Batch: Use Python to press any key to continue

I am using a python script to automate a process involving batch files. These are batch files that are used for other applications and I am not allowed to edit them. At the end of the batch file, it ...
0
votes
2answers
65 views

Redirect output of a .bat file run by a python script to GUI, and making that script into EXE

I have currently written a Python file that creates a GUI using wxPython, allows the user to enter some fields, then runs a .bat file in some other location, sending those parameters. The .bat file ...
0
votes
4answers
83 views

Run a specific batch command in python

What if I want to include a single batch command that isn't already in a file in python? for instance: REN *.TXT *.BAT Could I put that in a python file somehow?
0
votes
2answers
77 views

Python or VB script to run a batch file in background even the user logged out in windows [closed]

We need python or VB script code to run a batch file in background even the user logged out the system. The script should run always irrespective of users logged in/logged off and machine reboot. I ...
1
vote
1answer
41 views

associating files to a program from python

So, I have written a python app that runs on system startup on Windows7/8/Vista/XP. The first time it is ran, I want it to associate a few file types/extensions with a certain program which is on the ...
0
votes
1answer
59 views

Python split a large file to multiple file

I’m new to python and have a small bit of code that reads a list of files into a Windows batch file to execute. The trouble is, the code is (correctly) writing up 700 lines per batch file which would ...

1 2 3 4 5 10
15 30 50 per page