title: vbscript to check if a process is running, if its not then copy a file from network
body: <p>I am new to VB scripting and need help on a program to do the following, Can someone please help me out. It would be great if this whole program can be embedded into one vbscript. </p>
  
  <p>Write a script to check </p>
  
  <ol>
  <li>if a process is running or not( example notepad++.exe),</li>
  <li>if its running then dont do anything. </li>
  <li>If the process is not running, check if a directory is present or not under C:\Program Files(x86)</li>
  <li>Say if the directory is not there then copy the .exe file from a network shared location onto a local drive and </li>
  <li>then perform the command line installation in silent mode.(example> notepad++.exe -ms) </li>
  </ol>