Python Programming Help? - call python from windows bat file
I've just started to look at Python for about two days, and now can be programmed very simple programs.
I know that you can use a program to other pythons call. You can, however, the Python code for Windows files to run.
For example: Suppose you want a program to run when I start python msnmsgr.exe.
What would be the code for it?
Another thing, what can I do with Python? Since this type of program could do?
1 comment:
To start something, simply:
import os
os.startfile ( 'C \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ path \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ to \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ msnmsgr.exe ")
Python can do many things, simple program to play 2D scale (PyGame).
Post a Comment