Batch copying with xcopy - Renaming in use files
<p>What I want to be able to do is have the script rename a files that are in use.</p>

<p>Is this possible?</p>

<p>This is my current script.
Thanks in advance!</p>

<pre><code>@echo off
Set FileSource=C:\temp\cleric
Set RemoteDestinationFolder=C:\program files (x86)\cleric
Set InputFile=c:\Test\Computers.txt
Set RemoteDestination=\\%%*\%RemoteDestinationFolder::=$%\
For /F "eol=;" %%* in ('type "%InputFile%"') do (
 Ping.exe -n 2 -w 750 %%* | Find/i "TTL=" &gt;Nul&amp;&amp;(
 xcopy /Y/q/r/e "%FileSource%" "%RemoteDestination%")||(
  echo.%%* "Computer was Not found"&gt;&gt;%InputFile%.errors.log)
 If Not ErrorLevel 0 echo.%%* "Copy was unsuccesfull"&gt;&gt;%InputFile%.errors.log
 (Set ErrorLevel=)
 )
@echo.
Pause
</code></pre>