Robocopy not working on Win10 machine
The syntax for Robocopy is:
robocopy <source> <destination> [<file>[ ...]] [<options>]
- Both
<source>
and<destination>
must be directories - Robocopy cannot copy to the same directory whilst changing the name
- To copy all files in a directory, leave the
<file>
argument empty, or pass*.*
, remembering you have to pass the/e
flag to copy all files in all subdirectories
If wanting to copy %UserProfile%\Desktop\first_batch.bat
to C:\some_other_dir
:
robocopy %UserProfile%\Desktop C:\some_other_dir first_batch.bat
To achieve what you're trying to do:
copy %UserProfile%\Desktop\first_batch.bat %UserProfile%\Desktop\simple_copy.bat