Re: SNTP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Patrice (nobody_at_nowhere.com)
Date: 08/19/04


Date: Thu, 19 Aug 2004 16:52:33 +0200

I would rather configure the server so that it is synchronized with a source
(either external or an internal one that is itself synchronized), you'll
have then just to get the current date/time on this server.

If for some reason you want to query a remote server each time, you could
use the "net time" command (using WScript.Shell).
You may found also the win32 api function at msdn.microsoft.com in which
case you could create a wrapper for use from VBScript.

Is avoiding solution 1 a requirement ?

Patrice

-- 
"AlexM" <me@here.com> a écrit dans le message de
news:edE4lWfhEHA.3320@TK2MSFTNGP11.phx.gbl...
> Hello All,
>
> Is there any way to pull the date via SNTP from a timeserver with ASP /
> VBscript?
>
> Thank you,
> Alex
>


Relevant Pages

  • Re: can run javascript cant run vbscript - WHY
    ... client-side VBScript. ... >processing/formatting is done on the server, ... What you will need to do is set a "flag" on the client side, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: can run javascript cant run vbscript - WHY
    ... >> see any reasoning behind the posts, for that, I apologize. ... > about client-side VBScript. ... >>I think you are confusing my response with a response post later. ... > and during the server processing of the form's postback, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: can run javascript cant run vbscript - WHY
    ... It is part of the window object in the HTML DOM. ... >alert method from within a vbscript tagged script block. ... VBScript is client-side, ... and during the server processing of the form's postback, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: Launch batch file and pass control back to VBScript
    ... StartTime = Timer() ... This VBScript, configured to run when the server reboots, is designed ... How can I configure the VBScript or the batch file it launches to ...
    (microsoft.public.scripting.vbscript)
  • Re: can run javascript cant run vbscript - WHY
    ... > varies from browser to browser) not the DOM (Document Object Model, ... the VBScript Interpreter may choke on a function that does not ... I made no mention of server side code and was trying to help troubleshoot on ... > is he is trying to use a vbscript msgbox call in a web form."), ...
    (microsoft.public.dotnet.languages.vb.controls)