calling python script in batch file..
Posted: 17 Jun 2012 19:43
hi,
i just develop a python script and wondering how to call it in batch file so that i can automate in schedule task.
say,
in cmd i need to type in python.py <input.txt> <output.txt>
but if i write in batch file, how shall i go with it say python.py cannot be recognize as batch file?
#i have installed python 3.2 already.
The requirement of the batch file is like
if anyone know the solution.
i just develop a python script and wondering how to call it in batch file so that i can automate in schedule task.
say,
in cmd i need to type in python.py <input.txt> <output.txt>
but if i write in batch file, how shall i go with it say python.py cannot be recognize as batch file?
#i have installed python 3.2 already.
The requirement of the batch file is like
Code: Select all
@echo off
cd \
cd input
for %%f in (*.txt) do (
echo "%%~nf"
"D:\impressio\deployment code\add_null.py" .\"%%~nf.txt" .\ %%~nf_processed.txt
)
if anyone know the solution.