Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- robocopy from_folder to_folder files_to_copy /MOV
- robocopy from_folder to_folder files_to_copy /MOVE
- Exit
- code Description
- ==== ===========
- 0 Files were copied without error.
- 1 No files were found to copy.
- 2 The user pressed CTRL+C to terminate xcopy.
- 4 Initialization error occurred. There is not
- enough memory or disk space, or you entered
- an invalid drive name or invalid syntax on
- the command line.
- 5 Disk write error occurred.
- Rem Attempt file copy...
- xcopy /D /V %1 %2
- Rem Check result code and if it was successful (0), delete the source.
- if errorlevel 0 (
- echo Copy completed successfully
- del /Q %1
- exit /B
- )
- Rem Not Errorlevel 0...
- echo Copy failed for some reason.
- move C:source_dir*.* D:target_dir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement