Index: TECH/Context/RuntimeContext.cls.xml
===================================================================
diff -u -r2825 -r2875
--- TECH/Context/RuntimeContext.cls.xml (.../RuntimeContext.cls.xml) (revision 2825)
+++ TECH/Context/RuntimeContext.cls.xml (.../RuntimeContext.cls.xml) (revision 2875)
@@ -217,6 +217,43 @@
]]>
+
+IP:%String
+%String
+ c:\"_FileName // ping vervangen door nslookup
+ Set Ok=$ZF(-1,"NSLOOKUP "_IP_" > c:\"_FileName)
+
+ Set Stream=##class(%FileCharacterStream).%New()
+ Set Stream.Filename="c:\"_FileName
+
+ Do Stream.ReadLine()
+ Do Stream.ReadLine()
+ Do Stream.ReadLine()
+ Set ComputerNaamOutput = Stream.ReadLine()
+
+ Set PiecesIterator = ##class(TECH.PiecesIterator).%New(ComputerNaamOutput," ")
+ While (PiecesIterator.HasNext())
+ {
+ Set ComputerNaam = PiecesIterator.Next()
+ }
+
+ Set Stream = ""
+
+ Do ##class(%File).Delete("c:\"_FileName)
+
+ Set:("" = ComputerNaam) ComputerNaam = ##class(TECH.Process).GeefClientHostName()
+ }
+
+ if $zcvt(ComputerNaam,"U")="LOCALHOST" set ComputerNaam=$$$Server_".vanhoecke.be"
+ Quit ComputerNaam
+]]>
+
+
%String