>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
If you want to use UNC naming, then the syntax is
\\ServerName\ShareName\SubFolder(s)OfShare...
In your case you would need to define the "megasystem" folder on the server as a share named "megasystem".
Or, you could use whatever share is mapped for your test drive F: e.g.
\\server\FDriveShareName\megasystem\reports
As an alternative, if you have unrestricted administrative access to the remote system, you could also use the built-in administrative shares for the root(s) of its drive(s). For example, the administrative share for C: on the remote system is C$. If the folder you want to access is on C: then you could do something like
\\server\c$\megasystem\reports
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up