Advertisement
cigcag

zipvbs

May 13th, 2015
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set objArgs = WScript.Arguments
  2. InputFolder = objArgs(0)
  3. ZipFile = objArgs(1)
  4. CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)
  5. Set objShell = CreateObject("Shell.Application")
  6. Set source = objShell.NameSpace(InputFolder).Items
  7. objShell.NameSpace(ZipFile).CopyHere(source)
  8. wScript.Sleep 10000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement