Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And another one...
Message
De
21/04/2000 10:24:57
 
 
À
21/04/2000 08:22:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00362153
Message ID:
00362232
Vues:
21
>>can i know if there is any user on the network accessing files of the database ? Some Command like aused() i mean but not related on one's datasession.
>>thanks again
>>Alessio
>
>You can use ADSI to do this, but rights issues can make it impractical to run on a client workstation, because you need admin rights on the machine that hosts the files to view usage info. The ADSI components install with Windows 2000, but are available for download from MS and install on most other Windows OSs.
>
>lcComputer = "MYSERVER"
>oFileService = GETOBJECT("WinNT://" + lcComputer + "/lanmanserver")
>FOR EACH oFileShare IN oFileService.Resources
> ?oFileShare.Name
> ?oFileShare.User
> ?oFileShare.Path
> ?oFileShare.LockCount
>ENDFOR
>
>This will list all open files on the machine specified. You can use the Path property of the share object to narrow the results down to the file you are looking for.

thank again to u all
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform