(Just putting them in code tags to make them easier to read)
VBScript:
Code:
set oShell=createobject("wscript.shell")
set oNet=createobject("wscript.network")
sComputer=ucase(oNet.computername")
sCmd="bginfo etc etc - non IT Suite"
if left(sComputer,8)="IT-SUITE" then
iNum=right(sComputer,2)
if iNum >=27 and iNum<=36 then
sCmd="bginfo etc etc IT Suite special"
end if
end if
oShell.run sCmd Batch:
Code:
@echo off
set cstart=%computername:~0,7%
if not %cstart%==IT-SUITE goto standard
cnumber=%computername:~7,2%
if cnumber==27 goto special
if cnumber==28 goto special
if cnumber==29 goto special
goto standard
:special
bginfo /special switches
goto end
:standard
bginfo /standard switches
:end