.vbs file to parser a .csv

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • degas
    New Member
    • Aug 2013
    • 1

    .vbs file to parser a .csv

    Hello,

    I`ve been tryn to restart an Windows service trough a .bat file every 6h.
    That didn`t help , now im tryn to parser a .csv file and detect if the last 3 lines are the same , if so to run a "net stop <service> net start <service>.
    If the last 3 lines aren`t the same to close.

    Same lines of code :
    "41513.35473,29 49.331,1384.642 ,0.5029325,2988 .670,1599.079,0 .4334087,3357.7 47,1491.073,0.5 711690
    41513.35820,294 9.331,1384.642, 0.5029325,2988. 670,1599.079,0. 4334087,3357.74 7,1491.073,0.57 11690
    41513.36167,294 9.331,1384.642, 0.5029325,2988. 670,1599.079,0. 4334087,3357.74 7,1491.073,0.57 11690"

    Diferent lines :

    "41513.36514,38 70.177,1414.828 ,0.6353964,4127 .335,1630.353,0 .5771161,3920.6 48,1521.473,0.6 436101
    41513.36862,391 6.649,1470.999, 0.6265585,4097. 055,1692.159,0. 5548212,4138.73 9,1581.435,0.66 10025
    41513.37433,359 5.090,1434.832, 0.5712450,4467. 307,1642.420,0. 6153755,3594.55 4,1537.548,0.57 62002"

    I cannot install any software on the system (Windows Server 2003 Standard Edition).

    I will task schedule this and run it every 5 minutes.


    Any help will be greately apreaciated
Working...