New answers tagged

0

Don't worry, created a Python script that done it for me. If anyone comes across this and needs something similar here is my code: import glob, os, zipfile zipfiles = glob.glob("*.zip") ## find all files with zip extension in current directory count = 0 ## current file while (count < len(zipfiles)): print ("Extracting file: "+zipfiles[count]) ...


3

Batch Script - Subtracting (or adding) Days from Current Day Simplified You can do this using a batch script that sets the date variable and subtracts 1 day (or any number of days for that matter) from the current date which the batch script is executed. So you'd need to ensure that the day you schedule the script to execute, that that day is what you ...


1

I think it is always quite complicated to calculate dates. Therefore, I would like to propose an alternative solution to achieve what you need. I would use another scheduled task, to output the current date with the format YYYY-MM-DD in a file. You can find information on how to do that here. Then, in your scheduled job that is responsible for the zipping, ...


3

Well, possibly, but it would extremely unlikely... like getting struck by lightning while being eaten by shark unlikely. First off, the virus is most likely intended for a Windows machine, putting it on an Android device would likely have no effect even if it would executed. Second, Android sandboxes applications, essentially putting up security walls to ...


0

Just run this command on the bash prompt to concatenate the zips. for i in `seq 1 5`; do cat file.zip.0$i>>uncut-version.zip; done the above example has 5 parts. Then unzip the file using your favourite method unzip uncut-version.zip


0

I've got an "-d extract files into exdir" option in my unzip (5.52) which seems to do what you need. $ unzip -d files files.zip


0

I tried a simple 7z command without multithrading options on a windows 2012 server with 2 cpu and both cpu are working hard to compress my big file, so I think multithreading is active by default.


1

It is known that the size of the file archived which size is more than 4GB is displayed incorrectly in Windows Explorer. That happens because Windows Explorer (confirmed/tested on Windows 7) cannot process these archives correctly which is due to 64-bit file size data (zip64) being read incorrectly. Info-ZIP UnZip (version 6.00 or newer) can process these ...


1

What you're asking is exactly the task for an antivirus. If you plan on creating your own antivirus, which I strongly discourage, then you will need to use much more sophisticated techniques to protect the system from risky files. If your intention is to get a better antivirus which has options to do analyze file archives, then you should look at the ...


0

This is as close as I could get zipinfo -1 A.zip | xargs -l sh -c ' unzip A.zip "$0" && zip -9 A.zip "$0"; rm -f "$0" ' Which only ever creates one tmp file for each file in the zip at a time. If I can find a way to zip from stdin and pass a filename I'll be able to use unzip's -p to use pipes all the way instead. zipinfo -1 A.zip | ...



Top 50 recent answers are included