Zip Blank file not created using robocopy

%3CLINGO-SUB%20id%3D%22lingo-sub-1766776%22%20slang%3D%22en-US%22%3EZip%20Blank%20file%20not%20created%20using%20robocopy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766776%22%20slang%3D%22en-US%22%3ERobocopy%20path%5Cmain.zip%20path%2C%20this%20command%20zip%20files%20but%20created%20main.zip%20as%20folder%20and%20not%20a%20zip%20folder%3CBR%20%2F%3ESo%20how%20to%20create%20zip%20folder%20and%20not%20just%20a%20folder%20while%20doing%20robocopy%3CBR%20%2F%3Ebefore%2C%20using%20mkdir%20main.zip%20creating%20folder%20but%20not%20zip%20folder%2C%20how%20to%20achieve%20it%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1766776%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBash%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Erobocopy%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ezip%20files%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767016%22%20slang%3D%22en-US%22%3ERe%3A%20Zip%20Blank%20file%20not%20created%20using%20robocopy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767016%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F754547%22%20target%3D%22_blank%22%3E%40Himanshu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20tried%20powershell%20compress-archive%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.archive%2Fcompress-archive%3Fview%3Dpowershell-7%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.archive%2Fcompress-archive%3Fview%3Dpowershell-7%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor
Robocopy path\main.zip path, this command zip files but created main.zip as folder and not a zip folder
So how to create zip folder and not just a folder while doing robocopy
before, using mkdir main.zip creating folder but not zip folder, how to achieve it
2 Replies
Highlighted
Highlighted

@Himanshu 

Did it work for you?

 

if so, please select Best Response to mark this post as done.