Sub Announcement() MsgBox _ "Welcome to Veeblefester Widgets, Inc. logon script." & vbNewline _ & vbNewLine _ & "We hope you'll have a pleasant logon experience." & vbNewLine _ & "Be sure and stop by again soon for the finest logon" & vbNewLine _ & "you'll encounter anywhere!", _ vbOKOnly, _ cstrHead End Sub
Function Magic(lngX) Magic = (lngX + 34) / 12 End Function
As I said, you probably won't want to use MsgBox calls in a logon script, but you get the idea.
The first approach uses a .WSF script. These run with CScript.exe as well as WScript.exe just like a .VBS, .VBE, .JS, etc. It uses the src attribute of the <script> element to perform the include.
The second approach relies on reading the include file via the FSO and using the VBScript Execute statement. You might want to look into the limitations and possible side-effects associated with Execute before using it.