Hi all,
I am executing a Python script via a VBscript and I wish to pass it the input & output file locations.
The script works when I have the input filename / path hardcoded, but the input file will be defined earlier on in the script.
Working code:
I have: strPathAndFile = F:\Input_File_Path\_File_Name.csv (windows location)
So basically I need strPathAndFile in my code to replace the input file?
Can anyone help?
I am executing a Python script via a VBscript and I wish to pass it the input & output file locations.
The script works when I have the input filename / path hardcoded, but the input file will be defined earlier on in the script.
Working code:
Code:
Set WSHShell = CreateObject("Wscript.Shell")
Return = WSHShell.Run("E:\Git\bin\bash.exe --login -i -c MORE /P "". F:/Users/py27/scripts/activate; tessewrapper -i F:/Input_File_Path/_File_Name.csv -o F:/Output_File_Path""" , 0, True)So basically I need strPathAndFile in my code to replace the input file?
Can anyone help?