title: .bat searching for a file that could be in different file names
body: <p>I'm creating a batch file that if the program exists then it ends. but if it doesn't exist it'll begin installing that program.</p>
  
  <p>When the program installs, there is a part in the file path with 4 random numbers it creates and resides in. I'm unsure if my script will look through this or not. So far I've created:</p>
  
  <pre><code>@echo off 
  REM === Agent already deployed on the computer? 
  if exist "C:\Program Files (x86)\Citrix\Remote Support Customer\????\g2ax_comm_customer.*" goto END 
  REM === Deploying agent in silent mode 
  "\\location.exe" --mode unattended 
  REM === Script done 
  :END
  </code></pre>
  
  <p>I know the install works so I left that out. I don't do a lot with Windows command prompt and unsure if my if exist will work or not.</p>