How to copy a file from one drive to another drive using a robocopy in a batch file script. The source path and destination path should be given as input by the user including the file name. Thanks in advance.
This is the code that i have tried.
@REM Sample batch file
Set /p filename1=Enter the source path:%=%
Set /p fileparam=Enter the file name:%=%
Set /p filename4=Enter destination path:%=%
echo
pause
robocopy %filename1% %filename4% %fileparam%.txt /E /MIR
echo
pause