It removes or delete a directory or folder.
To view 'rmdir or rd' command with its all possible parameters you can use following command. Its like help information to regarding that command.
To view 'rmdir or rd' command with its all possible parameters you can use following command. Its like help information to regarding that command.
rmdir/?
OR
rd/?
OR
rd/?
Syntax :
RMDIR [/S] [/Q] [drive:]path
or
RD [/S] [/Q] [drive:]path
where,
/S : It removes all directories/folders and files in the
specified directory in addition to the directory itself
also. It is special kind of command used to remove or
delete a directory tree.
/Q : It is a Quiet mode, which do not ask if ok to
remove a directory tree with /S.
Use 1:
rmdir /s c:\test1
Use 2:
rd /s c:\test2
Use 3:
rmdir /q c:\test3
Use 4:
rd /q c:\test3
rmdir /s c:\test1
Use 2:
rd /s c:\test2
Use 3:
rmdir /q c:\test3
Use 4:
rd /q c:\test3
Output :
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\DINESH > rmdir /s c:\test1 c:\test1, Are you sure (Y/N)? y D:\DINESH > rd /s c:\test2 c:\test2, Are you sure (Y/N)? y D:\DINESH > rmdir /q c:\test3 The directory is not empty. D:\DINESH > rd /q c:\test3 The directory is not empty. D:\DINESH > _
No comments:
Post a Comment