Batch file to remove files & folders? If it only was as easy as reg files are.
#1
Posted 12 December 2006 - 07:16 AM
#2
Posted 12 December 2006 - 07:41 AM
TheTOM_SK said:
WHICH batch file?
jaclaz
#3
Posted 12 December 2006 - 07:49 AM
But it looks, like it just does not like me and it never works, no matter what.
#5
Posted 12 December 2006 - 08:12 AM
jaclaz
#7
Posted 12 December 2006 - 08:28 AM
IcemanND, on Dec 12 2006, 04:13 PM, said:
I did a clean instal of WinXP about once per week and The Avenger helped me to get rid of files like WMP's network sharing and other junk. An examle from Vista:
C:\Users\...\Favorites\Links C:\Users\...\Favorites\Microsoft Websites C:\Windows\Prefetch C:\Windows\SoftwareDistribution
This post has been edited by TheTOM_SK: 12 December 2006 - 08:28 AM
#8
Posted 12 December 2006 - 09:58 AM
Jim
#9
Posted 15 December 2006 - 02:36 AM
DELTREE C:\NewFolder DR
I would never try to use bat, but removing files one by one take houres.
This post has been edited by TheTOM_SK: 15 December 2006 - 02:36 AM
#10
Posted 15 December 2006 - 07:20 AM
To delete files from subdirectory trees use del /s names
Quote
DEL [/P][/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names 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 files
H Hidden files A Files ready for archiving
- Prefix meaning not
If 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.
to delete the directory tree and its contents use RD /s path
Quote
RMDIR [/S][/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
#11
Posted 15 December 2006 - 10:25 AM
I tried various command, but it did not work:
RD [/S] [/Q] C:\New Folder RD [/S] [/Q] [C:]New Folder RD [/S] [/Q] [C:\New Folder] RD [/S] [/Q] [drive:] C:\New Folder
#12
Posted 15 December 2006 - 11:00 AM
RD /S /Q C:\New Folder
#13
Posted 15 December 2006 - 11:09 AM
#15
Posted 15 December 2006 - 12:51 PM
I wonder, if there is any freeware software, which can remove folders and files like The Avenger does? I do not care, if it is bat or a software as long as it will do its job.
This post has been edited by TheTOM_SK: 15 December 2006 - 12:51 PM
#16
Posted 15 December 2006 - 12:59 PM
RD /S "C:\New Folder" pause
#17
Posted 15 December 2006 - 01:12 PM
ECHO Y | RD /s "C:\New Folder" ECHO Y | RD /s "C:\New Folder (2)" ECHO Y | erase C:\File.txt
#18
Posted 15 December 2006 - 01:47 PM
#19
Posted 15 December 2006 - 01:52 PM
rd /s/q "C:\New Folder" rd /s/q "C:\New Folder (2)" erase "C:\New Text Document.txt"
#20
Posted 17 January 2012 - 07:55 AM
Me Need Code For Found (Search) And Delete Drive And Folder.



Help

Back to top









