I would like to create a conditional statement for xcopy that does something only if xcopy copies something.
So basically what I am saying is, if xcopy copies a file, do something.
If not do something else.
How this be done using a batch?
So far I have the following:
xcopy "Z:\TestFiles.zip" "C:\Test\" /d /y
if xcopy exit code 0 (
)else
Aucun commentaire:
Enregistrer un commentaire