title: How to open any exe if path is unknown using vbscript?
body: <p>I can open EXE using following way. But sometimes, path is not fixed. If user change the installation path, following code will be useless.</p>
  
  <pre><code>Set objShell = WScript.CreateObject( "WScript.Shell" )
  objShell.Exec("C:\Program Files (x86)\MyAppFolder\MyApp.exe") 
  Set objShell = Nothing
  </code></pre>
  
  <p>I have referred following links as suggested</p>
  
  <p>1- <a href="https://stackoverflow.com/questions/1340355/launch-programs-whose-path-contains-spaces">Launch programs whose path contains spaces</a> : But this suggest using path or using Run. In my case path is not fixed. User is free to install application anywhere. I have tried using Run as given in that link but my application doesn't open from Run as example suggests</p>
  
  <p>2- <a href="https://stackoverflow.com/questions/1891261/how-to-get-program-files-environment-setting-from-vbscript/1891302#1891302">How to get program files environment setting from VBScript</a> : This link also contains some solution to get Program File path. But as I said above user is free to install anywhere.</p>
  
  <p>Please suggest how to open EXE if path is not predecided.</p>