I'm trying to delete y:
drive that mapped to a network directory using this line of batch script.
net use y: /d /y>nul
But in the situations y:
doesn't exist of already deleted. it gives me this error message.
The network connection could not be found.
More help is available by typing NET HELPMSG 2250.
Is there a way to avoid printing this error? I have tried net use y: /d /y>nul>nul
but no luck