I have created a batch file that copies pdf files in different server. The file name of the folder destination of files in desktop must be like this '2 Backup (name of user)'.
So, I want the user input their name once and make the inputted name the default value of /p variable. (kinda like remember this when inputting password in a login form)
set /p name=Input your name:
so that when I xcopy files it would look like this :
xcopy "%setPath%\08_AUG\%day_month%\%code%\%code%sample.pdf" "%HOMEPATH%\Desktop\2 Backup %name%\%code%\" /D /E /C /I /Y /H
can someone help?