Stefano
Stefano

Reputation: 3258

Batch program to delete a folder

I'm trying to automate a little backup process of a folder from the computer to a network-drive. I found the code below to delete the folder on the network drive but I can't get it working because it says "Unable to find the specified file" for each files that it tries to remove. Why?

rd /s /q "\\MY SERVER\mysharename\myfolder"

Upvotes: 2

Views: 119

Answers (1)

MC ND
MC ND

Reputation: 70951

Maybe there is a problem with concepts. It is not "\\server\folder", but "\\server\shareName". And you can not remove the share with a rd command.

Upvotes: 2

Related Questions