python and dos files question

Xristos Xristoou saxri89 at gmail.com
Wed Oct 5 16:14:18 EDT 2016


hello

some programs allow to export tools to dos .bat files for running from command line.
my question is how can i do to running .bat files and how can i do to define some variables from the .bat file before the running.

for example i want to define 4 variable and run this .bat file with the python
variables can be strings paths,images and text.

.bat file like this :

@ECHO OFF

REM SET program1=C:\program1\Modules
REM SET PATH=%PATH%;C:\program1

REM Tool: Tool1

program1_cmd tool1 0 -variable1=NULL -variable2=NULL -variable3=NULL -variable4=NULL -

PAUSE



More information about the Python-list mailing list