title: Batch file, wildcard in folderpath, no idea what the wildcard can be
body: <p>I have a batch file that attempts to replaces a file in </p>
  
  <pre><code>C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config
  </code></pre>
  
  <p>But the * varies from computer to computer, so it's not as if I can have an input list</p>
  
  <p>This batch file is executed in another batch file, which is called from command-line.</p>
  
  <p>Here is the batch file with the * path, <strong>C:\script.bat</strong></p>
  
  <pre><code>@echo off
  if exist "C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config\SyLink.xm_" del /Q "C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config\SyLink.xm_"
  ren "C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config\SyLink.xml" sylink.xm_bak
  del /Q "C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config\SyLink.xml"
  
  echo.
  echo Copying new SyLink.xml
  echo.
  copy C:\SyLink.xml "C:\Users\All Users\Symantec\Symantec Endpoint Protection\12.*\Data\Config"
  
  
  echo.
  echo Deleting temp files
  del /Q "c:\SyLink.xml"
  </code></pre>
  
  <p>And this is another batch file, <strong>C:\copy.bat</strong> that calls the first one, i.e. C:\script.bat</p>
  
  <pre><code>xcopy C:\sylink.xml \\10.10.10.10\c$
  xcopy C:\sylink.xml \\10.10.10.11\c$
  D:\pstools\psexec.exe @C:\clients.txt -c C:\Script.bat
  </code></pre>
  
  <p><strong>C:\clients.txt</strong></p>
  
  <pre><code>10.10.10.10
  10.10.10.11
  </code></pre>
  
  <p>Batch file is executed through the command-line</p>
  
  <pre><code>C:\&gt; C:\copy.bat
  </code></pre>
  
  <p>Question is, how do I make this batch file work so it recognizes * as a wildcard?</p>
  
  <p>Thanks</p>