CMonster
06-29-1999, 02:49 AM
Is there a DOS command that will delete all of a certain kind of file extension? for example if I wanted to delete all files on my hard drive with the extension .xyz?
thanks in advance
thanks in advance
| //flex table opened by JP
Click to See Complete Forum and Search --> : DOS command info CMonster 06-29-1999, 02:49 AM Is there a DOS command that will delete all of a certain kind of file extension? for example if I wanted to delete all files on my hard drive with the extension .xyz? thanks in advance blondini 06-29-1999, 04:09 AM a good one to use in your autoexec.bat is deltree/y c:\windows\temp\*.tmp so at boot up it keeps the temp folder from filling up with useless temp files, you could use just the del command ie. del *.tmp or del *.ini or del *.exe whichever, the asterix is used as a wildcard WhoKnowsWho 06-29-1999, 04:12 AM The simple delete command works, del *.xyz which would delete all files of that type, but I do not know of any way to do that in all directories at once. Searching for all the files (dir *.xyz /s) would show you all of the files but you would still need to manually give the path. If you find some way, tell me it too! Edit: the other reply was done right before I hit submit... I'm not just saying the same thing again on purpose really... http://www.sysopt.com/forum/smile.gif [This message has been edited by WhoKnowsWho (edited 06-29-99).] Logicbit 06-29-1999, 04:22 AM To delete all files with .xyz extension in the root directory and all sub-directories would be: del C:\*.xyz /s For other options with DOS commands; drop to a command prompt and type in desired command with /? and | more (in case output is more than one screen full): del/? | more or del/? /p (pause) Be well... TGuelker 06-29-1999, 11:04 PM If you are running Win9x, right click on My Computer and find all files with the extension *.xyz and then highlight and delete them. Do you want this to be done automatically? Then add this line to your autoexec.bat without the quotes "del c:\*.xyz /s" CMonster 06-29-1999, 11:12 PM Thank you all very, very much! SysOpt.com
Copyright Internet.com Inc. All Rights Reserved. |