Running an exe file with parameters in a VBScript
<p>I need to create a script that runs <code>setup.exe /configure Install.xml</code> from the folder the script is located.</p>

<p>When I run the script below, it does find the <code>setup.exe</code> but it does not read the parameters. It is like the last part (<code>/configure Install.xml</code>) is not being read.</p>

<p><strong>Script:</strong></p>

<pre class="lang-vb prettyprint-override"><code>Set objShell = CreateObject("Wscript.Shell")
strPath = Wscript.ScriptFullName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile) 
strPath = "setup.exe /configure Install.xml ," &amp; strFolder
objShell.Run strPath
</code></pre>