Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Zipping a folder via batch file

  • 28-05-2020 7:37pm
    #1
    Registered Users, Registered Users 2 Posts: 8,593 ✭✭✭


    Trying to zip a folder via a dos batch file.

    The instruction appears to be:
    zip -r <name>.zip <folder_location>
    

    However, i get the following error message:
    'zip' is not recognised as an internal or external command, operable program or batchfile.

    I've checked the path in the command line and it includes C:\Program Files (x86)\WinZip
    Also, If I right click on the folder I'm trying to zip, I get the menu option for WinZip to Add to..., Zip and..., Congifure, etc. So it would appear to be there. If I type zip /? at the command prompt it gives me the same message as quoted above.

    Some quick googling has shown that zip is not supported by DOS. I'm working on a company network which is heavily locked down and am therefore unable to download any apps or extensions to resolve this.
    Is there any way I can access the code behind the menu option for zip in order to get the folder zipped?
    Or is there another way to do this? Bit of a shame as I've got the remainder of the batch file operational and this was the final step in the entire process.


    Thanks.


Comments

Advertisement