If you need to retrieve a list of directories, then take a look at the DirPlus() or any other DIR() UDF and read DIR() Primer and File Operations in the FAQ Forum.

Then you can do this:
code:
$string='F:\CMD Files DOMAIN\USERNAME:F'
$dirloc=''F:\CMD Files'
$userperm=substr($string,len($dirloc)+2)
if instr($userperm,':')
$userperm=split($userperm,':')
$user=$userperm[0]
if instr($user,'\')
$user=split($user,'\')
$domain=$user[0]
$username=$user[1]
else
; error handler
endif
$perm=$userperm[1]
else
; error handler
endif

or something like this.
_________________________
There are two types of vessels, submarines and targets.