Stephon98caffe
Programmer
I need to write a script for my boss that will take a username ie vacosmiths1. And remove the vaco from the username and leave me with smiths1.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
usrstring = "vacosmiths1"
userName = Right(usrstring, Len(usrstring)-4)
WScript.Echo userName
Set oNetwork = CreateObject("WScript.NetWork")
cUser = LCase(oNetwork.UserName)
If left(cUser,4)="vaco" Then
nLen = 4
Else
nLen = 0
End If
WScript.Echo Right(cUser, Len(cUser)-nLen)