Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dir *.txt
- echo %errorlevel%
- Rem echos '0'
- xcopy .\NotARealFile.txt c:\tmp
- echo %errorlevel%
- Rem Echos '4' because the file doesn't exist.
- dir *.txt && xcopy .\NotARealFile.txt c:\tmp >> logfile.txt
- echo %errorlevel%
- Rem Echos '4' because the file doesn't exist.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement