1

I have a python script which take in 1 input and process to output. However, when i use batch file to call it like following, it failed to process...

cd \
cd ABC
cd input

for %%f in (*.txt) do (
    echo "%%~nf"
    "C:\Python32\python.exe" "D:\ABC\deployment code\add_null.py" "%%~nf.txt"  "%%~nf_processed.txt"
)

Anyone know the problem?

4

1 回答 1

0

批处理文件本身看起来不错。从您的错误消息来看,请确保您在调用批处理文件时位于正确的目录中,或者其名称中没有任何拼写错误。

于 2012-07-02T11:46:39.047 回答