Skip to content

Instantly share code, notes, and snippets.

@labbots
labbots / zipper.vbs
Last active April 11, 2023 09:15
VBS script to create zip for file or folder in Windows using ONLY Windows' built-in capabilities
Set Args = Wscript.Arguments
source = Args(0)
target = Args(1)
tempDir = Empty
Function GetFullPath(path)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
GetFullPath = fso.GetAbsolutePathName( path )
End Function