Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime() from server NOT from client
Message
From
18/07/2001 12:41:59
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
08/07/2001 10:48:30
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00527885
Message ID:
00532104
Views:
22
>How do I get the current datetime() off the server and NOT off of the client.
>
>I want to know when new users are created, but datetime() returns the data from the client and NOT the server.

Here's a simple way:
You could RUN a DOS comand from VFP:
NET TIME \\Computername > c:\temp\time.txt
Then parse the results from time.txt

There's probably another way to do this, but with API calls, making the DOS command unnecessary. I'll let you know if I find it.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform