I did to create a kix script, to change the time from GMT to EST by ip address as the users login

 Code:
shell "c:\scripts\getipadr.cmd" : Collect WTSClientAddress
sleep 5 
$x=open(1,"%temp%\ipaddress.txt")
$ip=readline(1)

$Systems= LTRIM(substr($ip,18,11))  ; Test IP Address
$NY=LCASE $Systems="10.176.192" ; Test Scope
	Run "REGEDIT.EXE /S C:\Scripts\USA.Reg" : Registory for USA
	Run "Regedit.exe /S C:\Scripts\NY.reg"  : Registory for EST
	? "Timezone set to GMT"
	sleep 1
	CASE $NY="10.20.84"
	Run "REGEDIT.EXE /S C:\Scripts\USA.Reg"
	Run "Regedit.exe /S C:\Scripts\NY.reg
	? "TimeZone set to EST"
	Sleep 1
	CASE $CH="10.50.11"
	? "TimeZone Set to CST"
	Sleep 1
	
ENDSELECTTRIM(Substr($ip,18,9))  ; 10.20.84
$CH=LTRIM(Substr($ip,18,9))  ; 10.50.11
SELECT


Edited by Mart (2011-12-09 09:58 AM)
Edit Reason: Please use code tags when posting code.