Re: Logon Script to check if current day is Friday

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 28 Dec 2006 11:14:36 -0800, n_dionaldo@xxxxxxxxx wrote:

Is it possible to create a logon script to check if the current day is
a Friday? The script will runs a command if it is Friday and if its
not Friday it kills the script.

Much Thanks
--ND


DD = FormatDateTime(now, 1)
if Left(DD, 3) = "Fri" Then
Wscript.Echo DD
ELSE
Wscript.Quit
End If

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages