genesis Posted June 3, 2017 Posted June 3, 2017 Hi I have a shared drive on a windows 2012 server called " Shared" Within this drive , i have only one folder called ART and within this folder ART there are sub folders. Initially i copied this folder from another server through Robocopy. Now I would like to delete this ART folder. When i delete i get and error that says Item Not found Could not find this item This is no longer located in E:\Shared. Verify the items location and try again. Please let me know how to delete this file. Is there a way of deleting this through Robocopy If so please post me the exact syntax and tutorials or if there is any other way. Thanks
3s-gtech Posted June 3, 2017 Posted June 3, 2017 You would be best using another command line tool - rmdir. It's quite flexible - have a look at the syntax for it. 1
genesis Posted June 3, 2017 Author Posted June 3, 2017 Not sure about the syntax, Please can you post the syntax to do this.
Bedders Posted June 8, 2017 Posted June 8, 2017 Not sure about the syntax, Please can you post the syntax to do this. Open command prompt in Windows (as administrator, ideally). Typing rmdir /? will give you the complete syntax and all instructions for it. Typing rmdir /s "C:\FolderPath\FolderName" will delete FolderName and everything in it, asking for confirmation first. Typing rmdir /s /q "C:\FolderPath\FolderName" will delete FolderName and everything in it without asking. My advice would be to type rmdir /s and then as you type the folder name, press TAB after the first couple of letters and it will autocomplete the name for you. This is useful to make sure that what you're trying to delete actually exists! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now