How To Determine Current Directory Depth

All examples below with with this code.

The approach does not work with relative paths.

Code
iLevel = ParseCount(Trim$(mypath$,"\"),"\")

mypath$ = "c:\two\three\"
mypath$ = "c:\two\three"
mypath$ = "\two\three\"
mypath$ = "\two\three"
mypath$ = "\\SERVER1\Employees\Bob\"
mypath$ = "\\SERVER1\Employees\Bob"


Source: http://www.powerbasic.com/support/pbforums/showthread.php?p=351474#post351474


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)