Page 1 of 1

If not exist command

Posted: 23 May 2021 23:43
by falcios
I have the following script

I want to go to :MENU if k:\dtsc does not exist
This script does not go to the menu.
Can you tell me how to update this line?

robocopy "c:\test" "k:\dtsc" /MIR /xf desktop.ini /e /np /tee /ndl
if not exist k:\dtsc GOTO :MENU

Thanks in advance.

Re: If not exist command

Posted: 24 May 2021 08:42
by Squashman
You have not shown us enough code to make any definitive solution to your problem.

Not understanding why you are checking it after the robocopy command.