the_doc735 Posted September 30, 2006 Posted September 30, 2006 Windows 2000 and Windows XP syntaxDeletes one or more files.DEL [/P][/F] [/Q] [/A[[:]attributes]] namesERASE [/P] [/F] [/Q] [/A[[:]attributes]] namesnames Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directory is specified, all files within the directory will be deleted. /P Prompts for confirmation before deleting each file. /F Force deleting of read-only files. /S Delete specified files from all subdirectories. /Q Quiet mode, do not ask if ok to delete on global wildcard /A Selects files to delete based on attributes attributes R Read-only files S System filesH Hidden files A Files ready for archiving- Prefix meaning notIf Command Extensions are enabled DEL and ERASE change as follows:The display semantics of the /S switch are reversed in that it shows you only the files that are deleted, not the ones it could not find.can anyone do a few examples of usage for this command please?I know:DEL /S /Q %SYSTEMDRIVE%\*.log (for example) "BUT!".....I need to know how to use the attributes R S H A IN THE LINEWould it be:DEL /S /Q /A : R S H A %SYSTEMDRIVE%\*.logORDEL /S /Q /A:RSHA %SYSTEMDRIVE%\*.logORDEL /S /Q /A: /R /S /H /A %SYSTEMDRIVE%\*.log
jaclaz Posted September 30, 2006 Posted September 30, 2006 See here if it's enough:http://www.msfn.org/board/index.php?showtopic=83617jaclaz
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