@echo off
set "curpath=%~dp0"
echo injecting servername.txt
echo to %curpath%
attrib -r "%temp%\imentemp\servername.txt"
attrib -r "%curpath%servername.txt"
copy /y "%temp%\imentemp\servername.txt" "%curpath%servername.txt"
timeout /t 10