Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement