zip a folder windows commandline code example Example: zip folder terminal zip -r mynewfilename.zip foldertozip/