[dba-Tech] Empty folders

Bobby Heid bheid at appdevgrp.com
Thu Sep 23 10:48:39 CDT 2004


Sort of, but not really.  Drew's example does have a looping structure, but
it is calling itself.

Here's and example through a directory tree:

c:\
   file1
   file2
   dir1
     dir1file1
     dir1file2
     dir3
        dir3file1
   dir2
     dir2file1
   file3
     

first call into c:\ returns
level
  1   file1 - print it
  1   file2 - print it
  1   dir1 - call function with dir1
  2   dir1file1 - print it
  2   dir1file2 - print it
  2   dir3 - call function with dir3
  3   dir3file1 - print it
  3   return from level 3
  2   return from level 2
  1   dir2 - call function with dir3
  2   dir2file1 - print it
  2   return from level 2
  1   file 3 - print it
  1   exit top level of function

Is that clear as mud now?

Bobby
     

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


I gotcha, looping in other words...


Jon

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


LOL.  Recursion is when you have a function call itself.

Function SomeFunction()
	DoThis()
	DoThat()
	For Each Something In SomethingElse
		SomeFunction
	Next
End function

Not it will repeat itself until all elements have been used.

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: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



_______________________________________________
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