GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to delete files & left directory structure intact? (https://gfy.com/showthread.php?t=665006)

toby466 10-11-2006 09:54 AM

How to delete files & left directory structure intact?
 
Do you know any program for Windows which can do this:

Delete cartain file type (ie. jpg files) in selected directory and its subdirectories and left directory structure and all others files intact.

Any ideas?

Klen 10-11-2006 09:57 AM

Try to do it with batch scripting.

psili 10-11-2006 10:03 AM

Here's a really dumb way in DOS:

Open up your dos prompt.
CD into the directory you want to recursively remove files from.
Type: dir *.jpg /S/B > list.bat
Open up "list.bat" in an editor and prepend each line with "del " (using a regular expression replace)
Run that batch file.

-- totally dumb, but since I don't know of any program either, that's how I'd do it.

Quickdraw 10-11-2006 10:07 AM

You can do it without a program this way--

start>>
Search>>
Pictures, Music, or Video>>
Check the box-- Pictures and Photos>>
Use Advanced>>
then select your top folder to search and click 'Search' and it will display all image files in that folder and subs

edit--
of course then you -- ctrl+a and hit delete


All times are GMT -7. The time now is 10:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123