Command To Zip A Folder Using Winzip

0 views
Skip to first unread message
Message has been deleted

Simone Whitmeyer

unread,
Jul 8, 2024, 9:53:36 AM7/8/24
to ualilkensu

If you are making the command configurable then you can ask the user/ other program which is calling your command to select the file extensions and then write these selected extensions into the "filename" file using java code or any other language you prefer.

The batch file is indented to move the zip file from my local pc to server which is possible now andthe problem is like winzip is not installed on the server so is it possible to move the winzip executable along with batch file and use its commandline to copy the extracted to multiple locations.

command to zip a folder using winzip


DOWNLOAD https://ckonti.com/2yLDUs



I am trying to zip a folder, which is the output of the workflow, each time it is run. I read about using a Run Command tool or event along with a batch script but can only find a batch script that does it using 7Zip (which my users won't have). Does anyone know what the bat lines would be to do this with WinZip?

This is close. I'm looking to zip a specific folder (the "Outputs" folder from the workflow after it is run). This script zips all directories inside a folder (which I guess would be fine and I could just filter for the Outputs folder but seems like there may be a way to do just one folder). I've been trying to build off what you sent me but have had no luck so far. I'll keep trying but if you have any suggestions that would be greatly appreciated.

Lowell--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

if winzip150 is asking for registration, it's the GUI and not the command line. that nag screen is being raised, and since you cannot click a window from a command line, it seems to hang/take forever.

the issue is no longer syntax, but the specifics of permissions/files on your machine, i'm thinking...WHERE is the executable 7za.exe? it's on the c: drive of SQL Server you are connecting to, right? not on your local client machine?

there was no installation to do...i downloaded the command line utility i pointed at fromt he previous posts, then unzipped the contents of 7za465.zip into the C:\Utils folder; no msi or anything else. if that's not what you are also doing, let me know.

A coworker has been zipping files (with password protection) via WinZip and sending to a vendor. I am wanting to automate this process via a SQL Server Agent Job that actively looks in a hot-folder, zips, password protects, and emails the file. I came across the 7-zip command line executable (7za.exe).

I have been successful in creating a password protected zip file using 7za.exe. Before going live, I tested it and it appeared to work. Here is the catch. I have the free version of WinZip which does not support encryption. To get around this, I save the attachment (remember that I email the file) to a local folder. I then right-click and 'Open With' Windows Explorer. It opens up the zip and shows me my lonely password protected .txt file. I double click and it asks me for the password... and opens fine.

If I try to 'Open With' WinZip 15.0 (or double click the .zip), it opens the zip and shows me the .txt file, BUT if I try to open the .txt file, I get an error "Encryption is not supported in this version of WinZip".

I assumed that my file was zipped correctly. I sent a sample test file to the vendor, and when they open the password protected file it does NOT show the intended data. Instead it shows junk characters.

Am I doing something wrong here? Why would I be able to open the file in WinZip, but my vendor cannot. I actually walked them through how I open it, step by step, but they still had problems. I still need to ask them which version of WinZip they have. In the meantime, does anyone know what may be going on here? Do some versions of WinZip not like .zip files created with 7zip?

I am using the default compressing feature on my Macbook frequently. And it works fine all the ways. However, I need to make a new zip archive and password protect the zip for security reason. Can I do this with the default compress option on my Mac?

While using Terminal to create a zip file is a valid method, I understand that it may not be suitable for everyone, especially those who are not comfortable with command-line interfaces. So, the method 1 maybe a best solution.

A key icon shows up, and when I type nothing happens. If I hit enter it moves to the password verification prompt. Same thing, if I type no text shows up and hitting enter for a final time will let me know that password verification failed.

Yep, I totally get wanting to add a layer of security to your zip files. The default compress option on your MacBook won't let you password-protect directly, but fear not, your trusty Mac still has a way to do it. Just requires a little trip to the Terminal! Here's how:

Thanks for the steps and I followed the instructions carefully. However, when I was trying to open this password protected on another PC, WinZip says the file is damaged and there is no way to open the file. Anythought?

a) Compress / zip each video file inside each folder with the respective filename
b) then compress / zip each folder with its respective name
c) Retain the original folder structure
d) then zip the whole structure into one single zip file containing the whole folder structure and video zip files inside it.

7zip comes with 7z.exe which can be used on the command line or in scripts. However, you'll have to use a script to do the folder structure zipping that you want. I've done something similar, zipping log files by month then year. It's not pretty, but I can post the script if you'd like to see it.

You call the program with certain parameters for setting up the winzip. In LabVIEW I guess you only can send the CMD commands to System Exec VI. Maybe you can try some forums talking about winzip, to get the correct CMD commands?

i guess they have two version of it , personal and licensed (or something like that). I googled a lot for getting the commands but ran out of luck.. may be now i will look in to the forums that you have mentioned about. And thanks a lot for the support

No problem, Guru! I'm sorry it didn't work, but I hope you find your answer in the forums. I pretty sure this has been done before, maybe in some other programming language like Java or Visual Basic. The commands and parameters should be the same if they call the program from CMD.exe

That is not possible from the backup zip file. You could extract a dat file from that backup and view it with a SQL viewer, but it is probably not in a format that would be useful to you. This is because the backup does not save individual messages, it saves the complete database within which message are not saved as individual files.

@jwhelbron If you have done a backup successfully via Menu / Backup to a .zip as per @sunriseal advised above, as long as you restore with the right version of Emclient (that you backed up with) everything will come back ok. I personally have restored many times this way & works fine.

You will need to add a command to shutdown the application, wait some time, and then check that all processes of the application are completely closed before executing the xcopy command. We have seen what happens with some users when eM Client is not properly closed, so you need to check that all processes in the task manager are closed before running your xcopy command.

When eM Client performs a backup it also writes the wal data back to the dat files. Using your command that does not happen and you could end up with corrupt or empty data files. It may be possible on doing a restore that eM Client will do a database check and reconstitute the data, but that is a risk as it is not always possible.

Hi, I simply backup the whole eMClient folder (while eMclient is not running) using winrar. In case of database corruption, it happened once, I just erase the folder and replace it with the .rar archive content. The default forder is
c:\users\AppData\Roaming\eMClient I think (to be verified). Anyway, I moved the data onto another drive with more space available.
I perform a backup every week or so and keep the last of each month.
.merle1.

7fc3f7cf58
Reply all
Reply to author
Forward
0 new messages