浏览代码

Added service setup

pull/8/head
Daniel Covington 7 个月前
父节点
当前提交
ec44b6c10b
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. +8
    -2
      ImportService/TrackingDataImport.vbs
  2. +4
    -0
      InstallService.vbs

+ 8
- 2
ImportService/TrackingDataImport.vbs 查看文件

@@ -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 查看文件

@@ -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"

正在加载...
取消
保存

Powered by TurnKey Linux.