Delete folder via CMD
Some times Because of virus Folder Can't Delete So you need CMD's Help::
By Parth Makadiya
Two ways to go here:
RMDIR /S /Q drive:folder_name
Can be used to remove a folder (directory) containing files and folders.
Sometimes it will not remove an empty folder
RD /S /Q J:\New Folder
Removes empty folders only
You'll notice I've added the following items:
/S Add this to remove all directories and files in the specified folder in addition to the directory itself. This is called removing a directory tree.
/Q Quiet mode, does not ask if its ok to remove a directory tree with /S.
A third method, sometimes permissible, is the DELTREE command.
Thankyou
By Parth Makadiya
Two ways to go here:
RMDIR /S /Q drive:folder_name
Can be used to remove a folder (directory) containing files and folders.
Sometimes it will not remove an empty folder
RD /S /Q J:\New Folder
Removes empty folders only
You'll notice I've added the following items:
/S Add this to remove all directories and files in the specified folder in addition to the directory itself. This is called removing a directory tree.
/Q Quiet mode, does not ask if its ok to remove a directory tree with /S.
A third method, sometimes permissible, is the DELTREE command.
Thankyou
Comments