Kaynağa Gözat

Added service setup

pull/8/head
Daniel Covington 7 ay önce
ebeveyn
işleme
ec44b6c10b
2 değiştirilmiş dosya ile 12 ekleme ve 2 silme
  1. +8
    -2
      ImportService/TrackingDataImport.vbs
  2. +4
    -0
      InstallService.vbs

+ 8
- 2
ImportService/TrackingDataImport.vbs Dosyayı Görüntüle

@@ -1,5 +1,6 @@
Option Explicit
Dim dev:dev = True
Dim WaitTime:WaitTime = 15000
Dim DataDirectory
Dim ConnectionString
Dim glob:set glob = CreateObject("Chilkat_9_5_0.Global")
@@ -20,9 +21,14 @@ Dim WorkingDirectory:WorkingDirectory = Replace(WScript.ScriptFullName,WScript.S
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;Data Source=C:\inetpub\Data\webdata - Copy.mdb;"
End If

Do
CheckForFiles
CheckForFiles
WScript.Sleep WaitTime

Loop


Function CheckForFiles()
Dim objFSO:Set objFSO = CreateObject("Scripting.FileSystemObject")


+ 4
- 0
InstallService.vbs Dosyayı Görüntüle

@@ -0,0 +1,4 @@
Set oShell = CreateObject ("WScript.Shell")

oShell.Run Replace(WScript.ScriptFullName,WScript.ScriptName,"") & "Dependancies\nssm install" & " TrackingImport C:\Windows\System32\cscript.exe " &_
Replace(WScript.ScriptFullName,WScript.ScriptName,"") & "ImportService\TrackingDataImport.vbs"

Yükleniyor…
İptal
Kaydet

Powered by TurnKey Linux.