Sunday, August 1, 2021

del command prompt doesn't delete directory - use rd instad

 


If you use del with a directory name then it will delete the files in the directory. The directory specified is not deleted.


If a folder name is given instead of a file, all files in the folder will be deleted, but the folder itself will not be removed.

To delete both directories and the files and subdirectories use rd (an alias for rmdir):



No comments:

Post a Comment