Create, save the file with the date variable in the file name


Trying to use the following to create a .txt file and save it with a custom filename that includes userinput variable and a date string. I can get it to name the file as the UserInput, but not the other elements (date, free text).

@echo off
set /p UserInputPath= Filename for Client Log?:
adb logcat > %DATE%_%UserInputPath%_ClientLog.txt

Try adding quotes: