General discussion

Locked

Scripts

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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Scripts

by kplesch In reply to Scripts

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 :-)

Collapse -

Scripts

by ravi1b In reply to Scripts

Poster rated this answer

Collapse -

Scripts

by rgbraze In reply to Scripts

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.

Collapse -

Scripts

by ravi1b In reply to Scripts

Poster rated this answer

Collapse -

Scripts

by ravi1b In reply to Scripts

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums