>sorry,
>
>ruta='\\server\megasystem\reports\'
>
>lnfilecount = adir(lafiles,ruta+"*.frx")
>
>in server\megasystem \ reports I have 300 files but returns lnfilecount =0
>
> but if I put the network drive if I returned 300 files
>
>
>ruta='f:\megasystem\reports\'
>
>lnfilecount = adir(lafiles,ruta+"*.frx")
>
>
>returns lnfilecount =300
So, looks like your drive is not properly mapped.
If you put in Windows Explorer
\\server\megasystem
can you access your directory?
If it's not broken, fix it until it is.
My Blog