|Sorry I do not have time to test, shouldn't do when so busy.|
Sorry again, hope this works.
for %%a in (active.*) do if not exist (*) goto make
echo Directory empty
ping -n 2 0.0.0.0 >nul
for %%a in (txt) do if exist "active.txt" goto eof
echo activation date=>>active.txt