title: VB script - search for a file in directory
body: <p>I am trying to write a VB script (having never attempted before) - I need it to search the folder'\file001\source$' - whilst in the folder search for all 'Update.exe'files - If this is done manually, in Windows it takes a long long time! 
  I would like all the files that it finds with this name - to be copied into a new folder.</p>
  
  <p>Looking at various help forums I am getting more and more confused.</p>
  
  <p>Below is what I have attempted:</p>
  
  <pre><code>Set fso = CreateObject("Scripting.FileSystemObject")
  ShowSubfolders fso.GetFolder("\\file001\source$")
  </code></pre>
  
  <p>'foldername = "\file001\source$"
    'filename   = "Updater.exe"</p>
  
  <pre><code>Function ShowSubFolders(Folder)
      For Each Subfolder in Folder.SubFolders
          Wscript.Echo Subfolder.Path
          ShowSubFolders Subfolder
      Next
  End Function
  </code></pre>
  
  <p>This is to search through a folder, recursively through the folders sub folders to find all files with this name.</p>
  
  <p>I have also done research into -directory.getfiles. But have no clue if this is the right direction. </p>
  
  <p>As a newbie to VB script, I have researched and attempted to play around with vb script, to get the function I desire. I would be grateful to any help I can get.</p>
  
  <p>Again - my target is to - find all files within the given folder and subfolders with the name update.exe - and then to copy these files found into a new folder. 
  Thank you in advance.</p>