Hi Salmon Trout,
Thanks for all of your help, here is the solution to the problem
@echo off
setlocal enableDelayedExpansion
cd /d C:\Users\jbrown\Desktop\Test
set I=2
:NextI
if /I %I% LEQ 999 set II=0%I%
if /I %I% LEQ 99 set II=00%I%
if /I %I% LEQ 9 set II=000%I%
if not exist "15-P!II!*" (
set /p "client_name=OPTIONAL Enter a client name and press <ENTER>: "
xcopy /s /e /i "15-P0000-Template" "15-P!II!!client_name!"
goto :eof
)
set /a I+=1
if /i %I% LSS 999 goto NextI
ADDED THE ASTERISK