Hi,
Great program. i've only discovered it recently, so i'm still learning.
i'm having problems running a windows program (therenamer) from the command line using a python script. The arguement string i'm sending to therenamer ( -ftech -ff="c:\xxx" -af="c:\yyy") appears to be formatted correctly by python, but it fails to work and only opens therenamer program as if no arguements were given.
Here is my code:
Code: Select all
import os
import subprocess
fetchfolder = "C:\\temp\\bones"
archivefolder = "C:\\smr"
args = '-fetch -ff="%s" -af="%s"' % (fetchfolder, archivefolder)
#args = '-fetch -ff="C:\\temp\\bones" -af="C:\\smr"'
print args
try:
retcode = subprocess.call(["C:\\Program Files (x86)\\theRenamer\\theRenamer.exe",args])
except:
passCode: Select all
retcode = subprocess.call(["C:\\Program Files (x86)\\theRenamer\\theRenamer.exe", arg1, arg2, arg3])
Am I using the subprocess call corectly?
Can anyone suggest another Python process that will run a windows executable with commanmd line parameters?
