Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incorporating wildcard type holder for condition statements

Status
Not open for further replies.

nettech40

Technical User
Sep 28, 2012
1
US
I have a vbscript used as a login script to give users printer access based on group.

There are 'exam rooms' that use default logins for their thin clients and the default format for that login will reflect the exam room that they are in....slaekex5, slaekex6, slaekex7...etc.


I don't think this is the right syntax, but this is what I want to accomplish

if strUserDn = "slaekex*" then
'// Sets Default Printer
WshNetwork.SetDefaultPrinter "\\P5\MMCC-GenSurgprt02"


Is there a way to accomplish what I want above?
 
Why not simply this ?
If Left(strUserDn, 7) = "slaekex" Then


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top