Pop quiz for geeks.
Nov. 24th, 2005 05:06 pmOn a Windows XP machine, I have a folder with many hundreds of subfolders.
I want to delete all files of a given extension (.doc in this case) from the root folder and from all subfolders, without affecting any of the other files.
I could do this in one line in a *NIX environment, and popping open CygWin would certainly fix the problem that way, but I want to know: does anyone know of a solution in Windows that does NOT involve manually selecting every file or opening a different OS emulator?
I want to delete all files of a given extension (.doc in this case) from the root folder and from all subfolders, without affecting any of the other files.
I could do this in one line in a *NIX environment, and popping open CygWin would certainly fix the problem that way, but I want to know: does anyone know of a solution in Windows that does NOT involve manually selecting every file or opening a different OS emulator?
(no subject)
Date: 2005-11-24 10:13 pm (UTC)(no subject)
Date: 2005-11-25 01:10 am (UTC)(no subject)
Date: 2005-11-25 05:23 am (UTC)(no subject)
Date: 2005-11-24 10:40 pm (UTC)(no subject)
Date: 2005-11-24 11:10 pm (UTC)I use that to do exactly that. Deletes *.bak from the current directory on downwards (the /s = include subdirectories)
(no subject)
Date: 2005-11-24 11:47 pm (UTC)(no subject)
Date: 2005-11-24 11:58 pm (UTC)(no subject)
Date: 2005-11-25 01:09 am (UTC)Thanks
(no subject)
Date: 2005-11-25 04:21 am (UTC)http://www.guardian.co.uk/uslatest/story/0,1282,-5437163,00.html
an easy solution...
Date: 2005-11-25 06:11 am (UTC)Manual - yes. Easy shortcut in Windows. Yes.
Re: an easy solution...
Date: 2005-11-25 11:29 am (UTC)Using your solution, I'd have to do this for each individual folder.
(no subject)
Date: 2005-11-26 12:21 am (UTC)