TheTOM_SK Posted December 12, 2006 Share Posted December 12, 2006 Hi, I have tried to get batch working for months, but nothing was not able to tell, what to do, even Google failed. Then I have found The Avenger and I used that one on XP to remove files, but since I have moved to Vista and that software does not work there, I have the same problem as I had before. I just need to know, how does it work, so I would be able to edit it. If you have any idea, please write it down. Link to comment Share on other sites More sharing options...
jaclaz Posted December 12, 2006 Share Posted December 12, 2006 I have tried to get batch working for monthsWHICH batch file? jaclaz Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 12, 2006 Author Share Posted December 12, 2006 Any batch files I have found around, even that one created by the avenger.But it looks, like it just does not like me and it never works, no matter what. Link to comment Share on other sites More sharing options...
jondercik Posted December 12, 2006 Share Posted December 12, 2006 Post the code you use Link to comment Share on other sites More sharing options...
jaclaz Posted December 12, 2006 Share Posted December 12, 2006 Yep, and possbly under which operating system you are trying to run them....jaclaz Link to comment Share on other sites More sharing options...
IcemanND Posted December 12, 2006 Share Posted December 12, 2006 what are you trying to remove? Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 12, 2006 Author Share Posted December 12, 2006 (edited) what are you trying to remove?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\LinksC:\Users\...\Favorites\Microsoft WebsitesC:\Windows\PrefetchC:\Windows\SoftwareDistribution Edited December 12, 2006 by TheTOM_SK Link to comment Share on other sites More sharing options...
jondercik Posted December 12, 2006 Share Posted December 12, 2006 You still havent posted the code you are using, cant help you until you do that.Jim Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 (edited) I folowed tutorial like this one and even simple bat did not work:DELTREE C:\NewFolderDRI would never try to use bat, but removing files one by one take houres. Edited December 15, 2006 by TheTOM_SK Link to comment Share on other sites More sharing options...
IcemanND Posted December 15, 2006 Share Posted December 15, 2006 Well for starters deltree does not exist in windows xp or vista.To delete files from subdirectory trees use del /s namesDeletes one or more files.DEL [/P][/F] [/Q] [/A[[:]attributes]] namesERASE [/P] [/F] [/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 notIf Command Extensions are enabled DEL and ERASE change as follows:The display semantics of the /S switch are reversed in that it showsyou only the files that are deleted, not the ones it could not find.to delete the directory tree and its contents use RD /s pathRemoves (deletes) a directory.RMDIR [/Q] [drive:]pathRD [/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 Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks for the detail description IcemanND.I tried various command, but it did not work:RD [/S] [/Q] C:\New FolderRD [/S] [/Q] [C:]New FolderRD [/S] [/Q] [C:\New Folder]RD [/S] [/Q] [drive:] C:\New Folder Link to comment Share on other sites More sharing options...
IcemanND Posted December 15, 2006 Share Posted December 15, 2006 the brackets denote optional parameters.RD /S /Q C:\New Folder Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks, but it does not work. Hmm, I have just read, that bat only marks it as removed, so new files can rewrite it, but it is not actually removed. Or maybe Vista just does not handle bat properly. Link to comment Share on other sites More sharing options...
IcemanND Posted December 15, 2006 Share Posted December 15, 2006 change the extension from BAT to CMD Link to comment Share on other sites More sharing options...
TheTOM_SK Posted December 15, 2006 Author Share Posted December 15, 2006 (edited) I changed bat to cmd and it does not work (screen). 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. Edited December 15, 2006 by TheTOM_SK Link to comment Share on other sites More sharing options...
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