7zip

Windows Azure virtual machine is slow to access network when scaling

不羁岁月 提交于 2019-12-06 01:13:49
I'm running some startup scripts (cmd/bat) on my small azure VM which include a file-transfer operation from a mounted VHD, and normally it finishes in about 3 minutes (copying files and extracting ~500Mb zip file with command-line 7z). When I scale out to ~150 instances, the same operation is very slow (up to 15 minutes in total, most of which is used by 7z). Also, the nodes which are the slowest to complete the bootup procedure are very hard to access at first using mstsc(animation is lagging and takes a lot of time to log in), but that might not be related. What could be the problem? We had

Is there an equivalent of gzip.open() for .7z files?

て烟熏妆下的殇ゞ 提交于 2019-12-06 00:21:01
问题 I have to frequently search through a couple of .7z (zipped with LZMA) files. I don't have enough memory to have them unpacked at the same time or to change the archive to .gz. At the moment I unpack one, search for what I need, delete what was extracted, unpack the next. I want to go through the archives in the same way as with gzip: f = gzip.open('archive.gz') for i in f: do stuff Is there a module/way to do this with .7z files? 回答1: There is a built in module in Python >= 3.3: http://docs

Batch file - Need an Alternative to 7-zip - cannot move

让人想犯罪 __ 提交于 2019-12-05 03:10:09
问题 Please see updated answer below Windows Batch files. I absolutely love 7-Zip and works great, but like WinZip's ability to move and timestamp files. However, WinZip's (command-line interface) has limitations for the size of files and the quantity of files within an archive, for example. Googling we do see that there is a person, who did take 7-zip's code and has re-compiled the code to use an -m (move) switch. However, I don't feel comfortable about using a third-party outside of the

J7zip on Android - Extracting From an Archive and Listing Contents

a 夏天 提交于 2019-12-05 01:23:00
问题 My previous question got closed as not constructive. I edited it there, but didn't see that it was closed ): I'm writing an application that involves extracting 7z archives. There doesn't seem to be any native support, so I've ventured off in search of third-party libraries or source code I could integrate into my project. I have been trying to implement J7zip but have not been successful. Listing contents of the archive returns no files: 12-24 13:36:44.216: I/System.out(18473): J7zip 4.43

Invoke-Expression with exe in Program Files

戏子无情 提交于 2019-12-04 17:54:57
问题 I'm trying to run a Powershell command to call 7-Zip to zip up a folder using the following command: $command = $SevenZip + " a " + $targetDirForZip + $GetDateName + "_" + $dir.Name + ".7z " + $dir.FullName Invoke-Expression $command The variables being fed into $command are already set and $SevenZip is "c:\Program Files\7-Zip\7z.exe" This isn't working and I'm trying to work out the best way to call 7-Zip from Powershell. Ideas? 回答1: I've had the same problem before. This is code (almost)

7-Zip: Any good tutorials? [closed]

…衆ロ難τιáo~ 提交于 2019-12-04 17:25:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm thinking about using the 7-Zip format to pack my application files since it's a very compact and popular format. I can't find some tutorials on how to use the C++ SDK, though. I'd like some tutorials that teach me how to: Open an archive from memory (buffer) instead of directly from disk. Extract individual

How do I write binary data for 7z archive format?

ε祈祈猫儿з 提交于 2019-12-04 15:00:40
I've been pouring over the format description and source code for the 7z archive format, but I'm still having trouble writing a valid container. I assume I can create an empty container... anyway here's my start: std::ofstream ofs(archivename.c_str(), std::ios::binary|std::ios::trunc); Byte signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}; Byte major = 0; Byte minor = 3; ofs.write((const char*)signature, 6); ofs.write((const char*)major, 1); ofs.write((const char*)minor, 1); UInt64 offset = 0; UInt64 size = 0; UInt32 crc = 0; ofs.write((const char*)offset, 4); ofs.write((const char*)size, 8);

pywinauto: How to select this dialog? Which spying tool to use? What information do I need on it?

蹲街弑〆低调 提交于 2019-12-04 14:42:50
How can I write "hello" on the first field of the 7-zip "Add to Archive" dialog? I managed so far to trigger the 7-zip (windows 64x) "Add to Archive" dialog using this from pywinauto.application import Application app = Application().start(r"C:\Program Files\7-Zip\7zFM.exe") #set the app app.top_window_().Edit.type_keys(r"C:\Users\me\Desktop{ENTER}") app.top_window_().SysListView32.Select(r'test.txt') #select files in list app.top_window_().ToolbarAdd.TypeKeys("{ENTER}") #apply Then I can't select the Add to Archive dialog. 1: This did not work. I guess because it did not find the dialog. If

How to know which rar is first in multi rar archives using SevenZipSharp/Unrar in C#?

被刻印的时光 ゝ 提交于 2019-12-04 14:36:02
I am trying to use SevenZipSharp or/and Unrar library in C# WinForms .NET 3.5. I have this problem with multi rar archives that have diffrent naming for example: .rar, r01, r02, r03 and so on (this is easy) somefile01.rar, somefile02.rar, somefile03.rar .001, .002, 003 and so on. If i point Unrar or SevenZipSharp to wrong archive it will unpack that particular archive and leave rest unpacked. So i have to point the right one (unless i am doing something wrong). What would be the best way to check for that? For now i am checking if there are more then one .rar files inside directory then if so

Importing zipped files in Mysql using CMD

我与影子孤独终老i 提交于 2019-12-04 14:13:12
I am trying to import zipped database files into Mysql using command prompt using the following command 7z < backup.sql.7z | mysql -u root test The root user don't have any password associated with it. test is my target blank database. I use 7zip for unzipping purpose. The zipped database i.e. backup.sql.7z is located in D drive. But it's giving the following error So, instead I used the following command 7z < backup.7z | mysql -u root test Note : This time I am using backup.7z instead of backup.sql.7z But then I get the following error Clearly there's something wrong with my SQL syntax. What