Tag:zip

  • How to use Python to crack Zip or rar compressed file password

    Time:2021-4-18

    This article mainly introduces how to use Python to crack Zip or rar compressed file password. The sample code is introduced in great detail, which has a certain reference learning value for everyone’s study or work. Friends who need it can refer to it We often download some compressed packages with password from the network. […]

  • MySQL 5.6.37 (zip) download, install and configure graphic tutorial

    Time:2021-1-27

    This article shared the MySQL 5.6.37 download installation and configuration tutorial for your reference, the specific content is as follows 1. Download address 2. After downloading, unzip it and move it to the installation directory. It is recommended to rename it to MySQL server 5.6, and my installation directory is e: / / MySQL server […]

  • Using VBS to realize the script of zip function

    Time:2020-12-1

    Compression:Function fZip(sSourceFolder,sTargetZIPFile)  ‘This function will add all of the files in a source folder to a ZIP file  ‘using Windows’ native folder ZIP capability.  Dim oShellApp, oFSO, iErr, sErrSource, sErrDescription  Set oShellApp = CreateObject(“Shell.Application”)  Set oFSO = CreateObject(“Scripting.FileSystemObject”)  ‘The source folder needs to have a \ on the End  If Right(sSourceFolder,1) <> “\” Then sSourceFolder = sSourceFolder & “\”  On Error Resume Next   ‘If a target ZIP exists already, delete it  If oFSO.FileExists(sTargetZIPFile) Then oFSO.DeleteFile sTargetZIPFile,True   iErr = Err.Number  sErrSource = Err.Source  sErrDescription = Err.Description  On Error GoTo 0  If iErr <> 0 Then     fZip = Array(iErr,sErrSource,sErrDescription)  Exit Function  End If  On Error Resume Next  ‘Write the fileheader for a blank zipfile.  oFSO.OpenTextFile(sTargetZIPFile, 2, True).Write “PK” & Chr(5) & Chr(6) & String(18, Chr(0))  iErr = Err.Number  sErrSource = Err.Source  sErrDescription = Err.Description  On Error GoTo 0  If iErr <> 0 Then     fZip = Array(iErr,sErrSource,sErrDescription)  Exit Function  End If  On Error Resume Next   ‘Start copying files into the zip from the source folder.  oShellApp.NameSpace(sTargetZIPFile).CopyHere oShellApp.NameSpace(sSourceFolder).Items  iErr = Err.Number  sErrSource = Err.Source  sErrDescription = Err.Description  On Error GoTo 0  If iErr <> 0 Then     fZip = Array(iErr,sErrSource,sErrDescription)  Exit Function  End If  ‘Because the copying occurs in a separate process, the script will just continue. Run a DO…LOOP to prevent the function  ‘from exiting until the file is finished zipping.  Do Until oShellApp.NameSpace(sTargetZIPFile).Items.Count = oShellApp.NameSpace(sSourceFolder).Items.Count      WScript.Sleep If it doesn’t work, increase the number of secondsLoop  […]

  • Create zip compressed file in laravel and provide the implementation method of downloading

    Time:2020-4-27

    If you need your users to support multi file downloads, the best way is to create a compressed package and provide downloads. Next, I’ll show you the implementation in laravel through this article. In fact, this is not about laravel, but more about PHP. We are going to use the ziprarchive class that has existed […]

  • Shell script learning call script package file zip method example

    Time:2020-2-16

    Preface This article mainly introduces the relevant information about calling scripts to package files into zip, which is shared for your reference and learning. Let’s take a look at the detailed introduction: Recently, I just touched shell script and wrote a little simple practice. Here is a python call script to perform the packaging operation. […]

  • Realizing zip compression and unzip decompression function code with pure vbs

    Time:2019-12-18

    Compression code: Copy codeThe code is as follows: Zip “D:\test.iso”, “D:\test.zip” Zip “D:\test”, “D:\test.zip” Msgbox “OK” Sub Zip(ByVal mySourceDir, ByVal myZipFile) Set fso = CreateObject(“Scripting.FileSystemObject”) If fso.GetExtensionName(myZipFile) <> “zip” Then Exit Sub ElseIf fso.FolderExists(mySourceDir) Then FType = “Folder” ElseIf fso.FileExists(mySourceDir) Then FType = “File” FileName = fso.GetFileName(mySourceDir) FolderPath = Left(mySourceDir, Len(mySourceDir) – Len(FileName)) Else Exit […]

  • Mysql-8.0.15-winx64 using zip package for installation and immediate shutdown after service startup

    Time:2019-10-27

    The MySQL version used in this example is mysql-8.0.15-winx64 1. Download the zip package Official website address: https://dev.mysql.com/downloads/mysql/ 2, installation After unzipping, copy the unzipped files to the installation directory that I prefer. For example, I like to be under Disk C, as shown in the figure: The file circled in red box in the […]

  • VBScript Compresses Single File in Zip Format

    Time:2019-10-6

    Copy codeThe code is as follows: On Error Resume Next Dim fso,fp,oApp,targetfile Set fso=CreateObject(“Scripting.FileSystemObject”) targetfile=”D:\tmp.zip” Set fp=fso.OpenTextFile(targetfile,2,True) fp.Write Chr(80) & Chr(75) & Chr(5) & Chr(6) & String(18,0) fp.Close Set oApp=CreateObject(“Shell.Application”) Set fso=Nothing Err.Clear oApp.Namespace(targetfile).CopyHere “C:\1.txt” WScript.Sleep 1000

  • How to open compressed files such as rar/zip in MAC system?

    Time:2019-9-20

    Students who usually use MAC may often accept rar files sent by others. Unfortunately, the default of Mac OS X system is that rar files can not be opened. (I don’t know if Apple will support RAR in the future?) So how do we solve the rar file? I’ll show you next. Software Name: The […]

  • Python uses zip to convert list to JSON

    Time:2019-7-1

    The zip () function takes an iterative object as a parameter and packages it into tuples. It returns a zip object. It can use list or dict transformation to return the result. It can use * zip to decompose the packaged object into a list. >>> l=[1,2,3,4] >>> keys=[‘a’,’b’,’c’,’d’] >>> zip(keys,l) <zip object at 0x000001E0AFA327C8> […]

  • Detailed description of decompression file command (zip) under centos7

    Time:2019-6-7

    1. Compressed folders are zip files [[email protected] ]# zip -r mydata.zip mydata 2. Unzip mydata.zip into the mydatabak directory [[email protected] ]# unzip mydata.zip -d mydatabak   3. Mydata01 folder and mydata02.txt are compressed into mydata.zip [[email protected] ]# zip mydata.zip mydata01 mydata02.txt   4. Decompress mydata.zip file directly [[email protected] ]# unzip mydata.zip 5. View the contents […]