Ver código fonte

Cleanup of exports

pull/8/head
Daniel Covington 6 meses atrás
pai
commit
3bef0b37e0
3 arquivos alterados com 15 adições e 4 exclusões
  1. +0
    -2
      App/Controllers/Kit/KitController.asp
  2. +14
    -1
      CiCd/deploy.vbs
  3. +1
    -1
      ImportService/TrackingDataImport.vbs

+ 0
- 2
App/Controllers/Kit/KitController.asp Ver arquivo

@@ -191,8 +191,6 @@ Class KitController
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing

End If
End Sub



+ 14
- 1
CiCd/deploy.vbs Ver arquivo

@@ -23,8 +23,21 @@ Debug.WriteLine ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u nt
"nircmd.exe elevatecmd runassystem C:\Windows\System32\inetsrv\appcmd.exe stop site /site.name:tracking & " & _
"copy /Y """ & transferFolder & "\zzip.zip"" " & """" & remoteDeployPath & "\zip.zip""" & " & tar -xf ""C:\inetpub\tracking\zip.zip"" -C ""C:\inetpub\tracking"" & exit"

'WshShell.Run ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* cmd.exe /C " & _
'"echo ""stopping app pool"" & " & _

'WshShell.Run ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* ""nircmd.exe"" elevatecmd runassystem ""C:\Windows\System32\inetsrv\appcmd.exe"" stop apppool /apppool.name:tracking

'"nircmd.exe elevatecmd runassystem ""C:\Windows\System32\inetsrv\appcmd.exe"" stop apppool /apppool.name:tracking & " & _
'"echo ""stopping site"" & " & _
'"nircmd.exe elevatecmd runassystem ""C:\Windows\System32\inetsrv\appcmd.exe"" stop site /site.name:tracking & " & _
'"echo ""removing files"" & " & _
'"nircmd.exe elevatecmd runassystem ""powershell"" Get-ChildItem -Path 'C:\inetpub\tracking\' -File -Recurse -Force | Remove-Item -WhatIf" & _

WshShell.Run ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* cmd.exe /C " & _
"copy /Y """ & transferFolder & "\zzip.zip"" " & """" & remoteDeployPath & "\zip.zip""" & " & tar -xf ""C:\inetpub\tracking\zip.zip"" -C ""C:\inetpub\tracking"" & exit",1,True
"copy /Y """ & transferFolder & "\zzip.zip"" " & """" & remoteDeployPath & "\zip.zip""" & _
" & tar -xf ""C:\inetpub\tracking\zip.zip"" -C ""C:\inetpub\tracking"" & exit" _
,1,True


'WshShell.Run ScriptDirectory & "PsExec64.exe -i \\" & DeployMachine & " -u ntp\daniel_admin -p BarkHornSlam4* " &_


+ 1
- 1
ImportService/TrackingDataImport.vbs Ver arquivo

@@ -104,7 +104,7 @@ Dim row:row = 0
objInkjetCSV.SetCellByName row,"Address 2",AddressArray(2)
objInkjetCSV.SetCellByName row,"Address 3",AddressArray(3)
objInkjetCSV.SetCellByName row,"Address 4",AddressArray(4)
objInkJetCSV.SetCellByName row,"IM barcode Characters",KitLabelsRs("OutboundIMBDigits").Value
objInkJetCSV.SetCellByName row,"IM barcode Characters","*" & KitLabelsRs("OutboundIMBDigits").Value & "*"
objInkJetCSV.SetCellByName row,"Precinct",KitLabelsRs("PRECINCT").Value
objInkJetCSV.SetCellByName row,"Ballot ID",KitLabelsRs("VOTERID").Value
objInkJetCSV.SetCellByName row,"Ballot Number",TrimLeadingZeros(KitLabelsRs("BALLOT_NUMBER").Value)


Carregando…
Cancelar
Salvar

Powered by TurnKey Linux.