Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adir()
Message
De
29/10/2015 16:30:40
 
 
À
29/10/2015 16:08:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Adir()
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01626658
Message ID:
01626676
Vues:
39
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform