How Do you Pass a String Variable to an Exe(Made in Python) in VBS
Question: I am trying to use the following script:

    
    
    E=inputbox("What do you want me to search?")
    Set sh = CreateObject("WScript.Shell")
    sh.Run "search.exe "+E, 0, True
    

and for some reason I cannot discern, it will just quit automatically without
any error message. The Exe, made in Python has the following script:

    
    
    import webbrowser as w
    e=raw_input()
    E=e.replace(" ","+")
    print(e+" has been searched.")
    w.open("http://stackoverflow.com/search?q="+E)
    

I assume it's crashing because `E=inputbox("What do you want me to search?")`
has multiple words, but I'm not sure. Any help would be greatly appreciated.

EDIT: When I tried to convert the python file to an exe again in hopes of
doing.....ANYTHING good, I saw the following message:

`The following modules appear to be missing: ['IronPythonConsole', 'System',
'System.Windows.Forms.Clipboard', '_scproxy', 'clr', 'modes.editingmodes',
'startup']`

Any help regarding this too would be very welcome.


Answer: [InputBox Function](https://msdn.microsoft.com/en-
us/library/3yfdhzk5\(v=vs.84\).aspx) is ok. Maybe that system can't find your
program. For debugging purposes (to see starting directory and all system
messages), change `run` line as follows:

    
    
    sh.Run "cmd /C search.exe " & E &  " & cd & pause", 1, True
    

or

    
    
    sh.Run "cmd /K search.exe " & E, 1, True
    

Resource: [Run Method (Windows Script Host)](https://msdn.microsoft.com/en-
us/library/d5fk67ky\(v=vs.84\).aspx) reference.

