the below code is working to move File.txt from Input folder to OutPut.
@echo off
chdir c:\InPut
dir /B > File.txt
move File.txt c:OutPut
pause
But when i try to move that to desktop, its telling error as
"the syntax of the command is incorrect".like below
@echo off
chdir c:\InPut
dir /B > File.txt
move File.txt %userprofile%\Desktop\
pause