WIL language extenders enhance Microsoft and TCP/IP networking. They are among the most useful parts of the WIL language. Network connectivity, special arithmetic operations, and other capabilities can be added to WIL with extenders. Other extenders are often available on the web site : https://www.winbatch.com/download.html. They may be downloaded from there. Software developers who want to create custom extensions to the WIL language may download a development kit called "WIL Extender SDK". The actual extender must be written as a DLL using C or C++. WIL SDK is available via HTTPS WIL SDK Zip
Each extender has a help file that explains how to use the functions in it. The example here comes from the Win32 Network extender and changes a password under Windows: Syntax:wntChgPswd(server/domain, user-name, old-password, new-password) Parameters:(s) server/domain either a server name (e.g., "\\MYSERVER") or domain name (e.g., "SALES") on which the password will be changed, or a blank string ("") for the current user's login domain. (s) user-name the name of the user whose password will be changed, or a blank string ("") for the current user's login name. (s) old-password the user's password on "server/domain" or "*UNKNOWN*"(see below). (s) new-password the new password to be set or a blank string ("")to indicate no password is desired. Returns:(i) @TRUE if successful.
Old-password wntChgPswd can be used to specify a new password without knowing the old password, if you are a member of the Administrators or Account Operators local group. To do this, specify "*UNKNOWN*" as the old password. In this case, the "user" parameter must specify an actual user name (i.e., it cannot be a blank string). Example:AddExtender("wwwnt34i.dll") old=AskPassword("Change Password","Enter old password") While @true new1=AskPassword("Change Password","Enter new password") new2=AskPassword("Change Password","Enter new password again") If new1==new2 Then Break Message("Try Again","The new passwords you entered do not match") EndWhile rslt=wntChgPswd("", "", old, new1) If rslt Message("Password","Successfully changed") Else Message("Password","Not changed") EndIf Exit
Changing passwords is easy on Windows with WinBatch and its Win32 Network extender.
|
§ Notes § Step by step guide to learning WIL
|