I have this code:
xcopy.exe /v/y/e "BlackBerry\pictures\*.*" "I:\Photos\*.*"
del.exe /q/s "BlackBerry\pictures\*.*"
I'd like to delete only in case the xcopy command ends successfully, otherwise show a error message
Any ideas?
xcopy + secure del
Moderator: DosItHelp
handsomed,
How about this:
&& - executes the subsequent command only if the previous command succeeded.
DosItHelp?
How about this:
Code: Select all
xcopy.exe /v/y/e "BlackBerry\pictures\*.*" "I:\Photos\*.*"&&(
del.exe /q/s "BlackBerry\pictures\*.*"
)
&& - executes the subsequent command only if the previous command succeeded.
DosItHelp?