Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Copy Tribefire files
- copy ..\host\conf\tf-main\tribefire\* resources\tribefire
- copy ..\host\webapps\tf\* resources\tribefire
- copy ..\host\webapps\tf-transformation\* resources\tribefire
- mkdir "resources\tomcat"
- :: Copy Tomcat files
- copy ..\host\conf\tf-main\tomcat\* resources\tomcat
- :: Copy Storage
- CScript zip.vbs ..\host\storage\tf-transformation\storage resources\tribefire\tribefire-storage.zip
- C:\braintribe\firectrl\firectrl.bat run --auto --usrvar installDir=C://braintribe/tribefire main.recipe --usrvar tribefireExternalDns=ec2-35-158-249-11.eu-central-1.compute.amazonaws.com
- 'Get command-line arguments.
- Set objArgs = WScript.Arguments
- Set FS = CreateObject("Scripting.FileSystemObject")
- InputFolder = FS.GetAbsolutePathName(objArgs(0))
- ZipFile = FS.GetAbsolutePathName(objArgs(1))
- 'Create empty ZIP file.
- CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)
- Set objShell = CreateObject("Shell.Application")
- Set source = objShell.NameSpace(InputFolder).Items
- objShell.NameSpace(ZipFile).CopyHere(source)
- 'Required!
- wScript.Sleep 2000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement