Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Resolving a argument when passing the string to another program?

$
0
0
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:

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)

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?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>