If not exist command
Posted: 23 May 2021 23:43
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.
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.