Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can we get datetime from another computer
Message
De
06/10/2006 13:49:03
 
 
À
06/10/2006 07:49:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01159197
Message ID:
01160158
Vues:
17
>>>Use Hilmar's method, it's much easier to use.
>>>STRTOFILE('aaa','\\yourserver\xyz.xyz')
>>>ADIR(temp,'\\yourserver\xyz.xyz')
>>>lcServertime=temp(1,4)
>>>erase \\yourserver\xyz.xyz
>>
>>Isn't that making an awful lot of assumptions about rights on the server.
>>I wouldn't allow that to work on my machines.
>>Regards,
>>Viv
>
>So you mean that your users have only read right, no create right? Well, in all the systems I have seen, each user has his/her own directory on the server with full right, and limited access to the other directories.

Guess there are all sorts of servers <g> I was thinking more in terms of a webserver or domain controller etc.

I suppose another option would be the old 'net time \\server > time.txt' and parse that approach...

Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform