title: Move unknown number of files using wildcard via VBScript (VBS)
body: <p>I'm trying to move one or more files from one directory to another directory using a wildcard:</p>
  
  <pre><code>dim filesys 
  set filesys=CreateObject("Scripting.FileSystemObject") 
  If filesys.FileExists("Z:\somepath\somefile_*_A.xlsm") Then 
      filesys.MoveFile "Z:\somepath\somefile_*_A.xlsm", "Z:\destpath\" 
  End If 
  </code></pre>
  
  <p>And it doesn't work...</p>
  
  <p>Notes: </p>
  
  <p>There are other files in these directories that I do not want to move. I want to move all of the files that are returned using the wildcard. Must be using VBS.</p>
  
  <p>Links:</p>
  
  <p><a href="https://stackoverflow.com/questions/14342121/vbscript-to-move-files-from-one-directory-to-another">VBscript to move files from one directory to another</a></p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/2wcf3ba6%28v=vs.84%29.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/2wcf3ba6%28v=vs.84%29.aspx</a></p>