>I wanna know the VFP Function of Remote Server Time.
>(related DLL or API function.)
>On Windows, We can see the werver time by "Net Time server_name /yes". and I wanna call this function in Visual FoxPro.
Under NT, the Win32 API call NetRemoteTOD() is available; there's no direct equivalent accessible from VFP under Win9x easily. The best way to access it is to redirect the output of the NET TIME
\\Servername /YES to a file and read the file. if you don't want the DOS box to appear, you can use ShellExecuteEx() to run the command hidden or minimized, or use my API_APPRUN class to run it, which uses the CreateProcess() API call, and also offers the option of running it hidden or minimized.