I am writing a script where a user can pick which folders they back up. All of the code works if the answer is YES but if it is no, It just ends.
Here is part of it.
%DESK1% is NO %M% is the selected back up drive
:Desktop
If %DESK1%==YES (
Robocopy /S /E C:\Users\%USERNAME%\Desktop %M%:\Transfer\%USERNAME%\Desktop /E & goto Documents
) else (goto Documents
)
:Documents
As I mentioned If yes, it works, if no, the script ends. I have tried different gotos and else if but this is the best so far.
I appreciate any advice.
Thanks
Aucun commentaire:
Enregistrer un commentaire