[dba-Tech] Empty folders

Bobby Heid bheid at appdevgrp.com
Thu Sep 23 07:24:53 CDT 2004


Recursion, as applied to programming, is where a function calls itself.

As applied to directories/files, you would call a function that starts at
the root of a drive.  Something like (air pseudo-code):

GetDirInfo "c:\"

'no error checking in this code
public sub GetDirInfo(byval strPath as string)
dim strFile as string

   strFile=dir$(strpath)
   do while len(strFile)>0
      if (strfile is a directory) then
         'call to self is here
         GetDirInfo strFile	
         else
           'do something with file name
         end if
      loop
   
end sub


Bobby

-----Original Message-----
From: dba-tech-bounces at databaseadvisors.com
[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Jon Tydda
Sent: Tuesday, September 21, 2004 10:41 AM
To: 'Discussion of Hardware and Software issues'
Subject: RE: [dba-Tech] Empty folders


It's a little bit out of my league - I just hack vba in Excel...

I hate it when you make me look words up... 

Hmmn, didn't help... "Recursive: An expression, such as a polynomial, each
term of which is determined by application of a formula to preceding terms."
Polynomial? eep, maths!


Jon

-----Original Message-----
From: Drew Wutka [mailto:dbatech at wolfwares.com]
Sent: 21 September 2004 15:37
To: Discussion of Hardware and Software issues
Subject: RE: [dba-Tech] Empty folders


right a little recursive code.

Drew

-----Original Message-----
From: dba-tech-bounces at databaseadvisors.com
[mailto:dba-tech-bounces at databaseadvisors.com]On Behalf Of Jon Tydda
Sent: Tuesday, September 21, 2004 9:07 AM
To: Dba-Tech (E-mail)
Subject: [dba-Tech] Empty folders


Hi all, does anyone know of a way to find empty folders in win2k?
 
I'm re-ripping a lot of my cd collection, and some of the tracks/albums are
being named more correctly as the online catalogs are more up to date than
before, which is leaving me with a lot of empty folders. I have deleted the
ones in the main tree, but as for going through all the artists folders and
deleting the empty album names, that's going to be a pain... I was thinking
that there has to be an easier way to do it than just looking...
 
 
Jon


The information in this e-mail is confidential and may also be legally
privileged. The contents are intended for recipient only and are subject to
the legal notice available on request from : webmaster at alcontrol.co.uk
ALcontrol Laboratories is a trading division of ALcontrol UK Limited.
Registered Office: Templeborough House, Mill Close, Rotherham, S60 1BZ.
Registered in England and Wales No 4057291
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com


_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com


The information in this e-mail is confidential and may also be legally
privileged. The contents are intended for recipient only and are subject to
the legal notice available on request from : webmaster at alcontrol.co.uk
ALcontrol Laboratories is a trading division of ALcontrol UK Limited.
Registered Office: Templeborough House, Mill Close, Rotherham, S60 1BZ.
Registered in England and Wales No 4057291
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com




More information about the dba-Tech mailing list