Advertisement
penright

Untitled

Oct 3rd, 2023
1,615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.69 KB | None | 0 0
  1.     Sub FixEODs()
  2.         Dim EODIni As New PrivateIniFile("c:\iris\ini\eod.ini")
  3.         EODIni.DeleteSection("DataPath")
  4.         For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
  5.             Dim RegInfo As RegInfo = PosMaint.RegisterInformations(xLoop)
  6.             EODIni.WriteString("DataPath", "Reg" & RegInfo.RegisterNumber.ToString, "\\10.77.79." & (70 + RegInfo.RegisterNumber).ToString & "\c\iris\data")
  7.             EODIni.WriteInteger("DataPath", "Reg" & xLoop + 1 & "Num", RegInfo.RegisterNumber)
  8.         Next
  9.         EODIni.WriteInteger("Network", "NumberOfRegister", PosMaint.RegisterInformations.Count)
  10.         EODIni = Nothing
  11.         CopyINIToRegInfo("eod.ini")
  12.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement