Discussion Locked

Scripts

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how do i write scripts in winnt
send me some sample scripts.
thanks

5 replies

by kplesch

By you hand.
This is simple registration VB-script:

'Declarations
Dim WSHNetwork
Dim WSHShell

'Object initialization
Set WSHNetwork = WScript.CreateObject("WScript.Network")
Set WSHShell = WScript.CreateObject("WScript.Shell")

'Connectnetwork drive
WSHNetwork.MapNetworkDrive "H:", "\\FOBOS\D"

'If Administrator logon - welcome message
If WSHNetwork.UserName = "Admin" Then
WSHShell.Popup "Good day. System welcome your Administrator", 10, "Welcome"
End If

This is very simple :-)

by rgbraze

Even easier, is using Kixtart. It's on the Windows NT Server Resource Kit CD, but you can also get it from the web at http://netnet.net/~swilson/kix/ and download the latest version, complete with documentation. Also, there are a bunch of great scripts on this site.

This discussion is closed to new replies.