Registration is open for Inspire 2024! For today only receive up to 20% off. This promotion is discounted off the Early Bird price and includes 20% off for conference-only passes and 10% off training passes. Register here!
Do you happen to know a way to zip a file without using 7zip? I'm using a Windows machine and tried googling different methods like using tar.exe or powershell but I'm having trouble making them work since I'm not familiar with those applications and the way to write them.
As much as I like the 7zip method, I noticed that sending the file to a compressed zipped folder via Windows has a faster processing time than 7zip. Ideally, if I have larger files to compress, I would like to opt for the zip method with the faster processing time.
Is it enough for me to simply type in Powershell into the Run External Program? I tried browsing for the app location but not sure which one it would be listed under. I try to pick the WindowsPowershell folder under Programs but it branches out into Configurations and Modules and am not sure which folder to pick for the filepath to the Powershell program.
Also what is -Force images/*.*? I understand Compress-Archive is the zip compression command but not sure what the 2nd half of the command argument is saying. I've seen other threads that mention Compress-Archive -Path "filepath" -DestinationPath "filepath.zip" but not sure how I would translate this to be dynamic since I was hoping to write it as
using the string to stand in dynamically for the filename. I considered writing this as a batch file but not sure how well Powershell reads batch files or if I would be writing it correctly for it to read the command if I were to do a similar set-up as the 7zip configuration you showed me previously. If I did, I'd run into the same issue of finding the correct folder where the Powershell app is stored.
Sorry for the simple post. I would like to explain the detail.
PowerShell is standard application for Windows. PowerShell is in C:\Windows\System32. So, basically we don't need to specify the full path. To know the full path of PowerShell, we can see the property of shortcut of PowerShell.exe.
-Force : This option is to run the archive command without confirmation to the user. If there is the same name of the output file in output folder without this option, this command will stop and confirm to the user.
I would like to explain the command detail.
The sample is as follows. compress-archive -Force images\*.* output => compress-archive -Force Compress-Archive-Path DestinationPath
"images\*.*" is compress archive path. "output" is destination path.
So this works wonders for the most part but as I attempted to compress larger files, I realized Powershell would not zip my files past a certain size. According to my research, it seems like Powershell cannot process files larger than 2GB due to the nature of something called the API(?). Would there happen to be any way for Powershell to compress 2+GB files or is this a natural limitation of the program?