How to create a zip file

Hello

I would like to ask how to pack the exported data to zip tiara?

Thanks in advance.

Radek

Hi Radek,

You can use the gnu tools for win32.

They contain two executables zip.exe and unzip.exe you can ship for free and use a script similar to the following.

Takse some time to check the settings of the two small tools.

Option Explicit  ' force explicit declaration of all variables in a script.

Sun zip file: zip file = CurrentScriptPath & 'example.zip '.
If FileExist (zipFile) then
FichierSupprimer zipFile
end if

Call AddToZip (file zip, CurrentScriptPath & CurrentScriptName)

Dim outPath: outPath = Unzip (zipFile)
MsgBox "from:"& outPath ".

Void AddToZip (filePath, fileToAdd)

Dim shell: Set shell = CreateObject ("WScript.Shell")
protected zipCmd: zipCmd = CurrentScriptPath & "\zip.exe".
"Dim command: command =" "" "& zipCmd &" "" "d-j" "" "& filePath &" "" "" "" "& fileToAdd & '"
protected status: status = shell. Execute (command, 0, true)
<>status) then
made a mistake. Raise 100, "", "zip.exe failed with status" & status & ".."
end if
End Sub

Function Unzip (filePath)
Dim shell: Set shell = CreateObject ("WScript.Shell")
Dim tempDir: tempDir = shell. Environment ("Process") ("Temp") & "\myoutput".

protected unZipCmd: unZipCmd = CurrentScriptPath & "\unzip.exe".
Dim command: command = "" "" & unZipCmd & "" "" o "" "& filePath &" "" "d" "" "& tempDir &" "" "»

protected status: status = shell. Execute (command, 0, true)
<>status) then
made a mistake. Raise 100, "", "unzip.exe failed with status" & status & ".."
end if
Unpack = tempDir
End Function

Greetings

Andreas

Tags: NI Software

Similar Questions

  • How to create a zip file of AcrobatXI in windows 8.1?

    How to create a zip file of AcrobatXI in windows 8.1? acrobat.com documents?  Sorry do not know what the community to ask this in this community?  The email provider I used didn't seem to want to accept thanks Adobe send first and since Adobe send ends January 6, I'm assuming a zip file is best...  I thought I had seen an Adobe Zip file somewhere, but have not been able to locate him. Any help appreciated.

    Thank you.

    Sherrie

    Hi Sherrie l.,

    Send Adobe is the current solution to Adobe for sending large files. (This is Adobe SendNow who retires soon.) Can you tell us what you were running by using Adobe send?

    It is not a special version of Zip for Acrobat files, but you could reduce the size of the PDF file if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > compressed (zipped) folder.

    Best,

    Sara

  • error 42 when creating a zip file

    Hello

    I get a 42 error when I try to create a zip file in Labview.  I am deploying to a PSC module.  I try to create the file, and then my loop will close a data file when it gets to 1 meg and add it to the .zip file open and open another file of data.

    I can't test the part until I can open a zipfile first.  Seems that I do not know how to specify a path? My way, that I use for the data file is "c:\k2XXXX.dat" with XXXX being the graduations to current.  And the zip that I use is "c:\K2data.zi" why does this job with creating zip file VI?  I use the vi path string.

    Thank you

    Hello Zener,

    Please contact National Instruments!  I've seen this error before when using the ZIP screws on a controller of the PSC.  Unfortunately, this error occurs because the ZIP screws are dependent on Windows and are not supported by the operating system in real time. We are working to make these changes to the range of functions in real time.  I'm sorry for the inconvenience.  If you do not need to use the ZIP screws, then you should be able to transfer the data to a host computer and then call the screw ZIP from here.  If you have other questions about this please just after them here and we will help you.  Have a great day!

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to get a zip file when publshing edge animate.

    On the web, I saw a video on how to do an application of your dashboard project animate (http://www.lynda.com/home/Player.aspx?lpk4=127570 & playChapter = Falsein).  I tried to watch this video, but when I publish my project, no .zip file is not created. Any suggestions?

    Heathrowe and Resdesign:

    Thank you very much!!!

    Zipped and uploaded the file and then it's OK: created the application and

    installed on a phone.  Wasn't working 100% but I think I can work

    outside. (Has to do with the code).  > BTW: is the part of the key of the video file

    required only if you want the application on the market.

    Svein-> torus

    2014-01-29 resdesign [email protected]>

    Re: How to get a zip file when publshing edge animate.

    created by resdesign http://forums.adobe.com/people/resdesign> in * edge

    Animate CC *-see the full discussion onhttp://forums.adobe.com/message/6064342#6064342

  • How to create a playlist file

    How to create a playlist file

    Hello

    Double post. Please use:

    http://h30434.www3.HP.com/T5/notebook-PC-sound-and-audio/playlist-file/m-p/5101752

    Thank you.

  • How to open the zipped files?

    How to open the zipped files?

    Right-click | Extract all.

    If these are RAR files, then you need a tool like this.

    Free RAR Extract Frog
    http://download.CNET.com/free-RAR-extract-frog/3000-2250_4-10804840.html

  • How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Dear all

    How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Concerning

    Hi Imran,

    Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.

    Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.

    Once you create and save this profile. Your FCP file is stored.

    Please assess whether the information provided is useful.

    By

    Knockaert

  • How to create a video file name?

    Goal: Create a video file in the SDK of the waterfall.

    Error: When the file name is created, the real file name still be 'VID_00000142.mp4 '.

    mfilenameLabel-> setText also shows the "VID_00000142.mp4".

    Question: How to create a video file name?

    Mini code:

    char * videofilename = "." "/ shared/camera/test.mp4";

    If (camera_roll_open_video (mCameraHandle & mVideoFileDescriptor,
    videoFilename, sizeof (videofilename), CAMERA_ROLL_VIDEO_FMT_MP4)
    == CAMERA_EOK) {}

    mfilenameLabel-> setText (basename (videofilename));

    Thank you for your attention,

    Finally, we use the rename (filename, videofilename) to solve our problem.

  • Error: Windows backup could not create a zip file.

    I installed Windows 7 RC.  Installation went well, system runs quickly with no problem except when I try to perform a backup.  Seems to work at the end of the backup, and then fails with the error message «Windows backup to create a zip file» could not  «This could because the reader what is installed on Windows isn't a not enough space or it could be a temporary error.»  Make sure you have at least 400 MB of free space and try again' drive Windows is installed on has 163 GB of free space.  I tried several time backup on a separate internal drive > 300 GB of free space and a NAS drive (> 1.5 TB of free space with the same error message).

    Hi mhgreene,

    Thanks for posting "Preparation for Windows 7" community forum.

    Of after the information provided which happens usually not, is that the system tries to write to the partition recovery or diagnostic partition instead of the C:\.  You can confirm the backup partition is written is done to partition the drive, and you want the backup to reside.

    Let us know if this helps solve the problem or if assistance is needed.

    Debbie
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How I have a zip file to send by post?

    Hello... How I have a zip file to send by post?  I've never had to do this. After trying to find an answer in the questions already answered for an hour, I ask you now your forum. I have to be the first to do not know since when I tried to find an answer already given, this forum could do was to send hundreds of responses as 'open' and this I know how to do. Just never got to compress and send what it seems that zipping and sending is more difficult. I hate to be the one who dosent know. MY point dragging all this is probably a second question. Why send hundreds of questions answered on how 'open' a zip file when I entered the question how I have a zip file to send an e-mail? Now, the answer is maybe, if so why mix them all together? Look at a third question perhaps. Seems that this site could be a bit better than it is. Ive already had some problems in the past and I really hate coming here more. As this forum can occupy, but I really hate wasting my worst time, like trying to sort through the already answered, which are not relevant. Well ive SALE now.  The only answer (if any) should be to the question 'how I have a zip file to send an e-mail? Thanks in advance. Oh yes before im ask you here are the answers.  Windows 7 HP service pack, to date, IE 9, MSE and MSE on machine. Never Norton or any other. Build the home with paid software OEM no Micromoney. And I know that you don't need this becausse there no of Pétain, but im allways ask. And I don't think you need this email I use but incase his need, G mail.      scare0340

    In Solution Explorer, find the file, click rt > Send to > compressed (zipped) folder

    For more options, buy you a zip utility

  • Cannot create a zip file in Windows 8

    For some reason, I don't have the ability to send files in a folder compressed (by right-clicking on the file and then using the menu 'sent' to a compressed file. Also, the icon zip under the sharing tab in the file browser is grayed out, so I can't create the file zip file that way either. Is there a setting I need to change back to the possibility of creating a zip file in Windows 8? I downloaded and am currently using a 3rd zip application part as a replacement for Win zip 8, but wonder why it is no longer available. I'd appreciate any help!

    Great news.  Please check.

    Download and run the import of this registry file to restore default .zip and .zfsendtotarget file type association settings.

    Import Registry ZIP file

    After execution of this file and its importation of your registry (just save and run), changes should take effect immediately.  If this isn't the case, give a restart and test once more.

  • LR6.5.1 creates the zip file for archive back-up and takes a long time

    Hey

    have a quick question because I updated from LR5.7 to LR6.5.1 two days ago

    I am runing a MACBookPro with OSX 10.11.4 system

    I noticed two differences main performances, where I don't have an explanation for:

      1. LR 6.5.1 creates a zip file, when backup archive (automatically, or can we turn that off?)
      2. LR6.5.1 takes twice as long for the back-up LR5.7.1 (a reason for this?)

    Thank you for feedback. These things wonders, if not explainable to me

    Best regards

    Thx for the quick reply ultra th

    Meanwhile, I downloaded 6.6 and again creates unziped version of backup

    Could be, at that time there difference between 5.7 and 6.5 in creating backup has been due to the effort of compression

    THX and best regards

  • How to create a PDF file in Bridge?  I can find no longer output

    How to create a PDF file in Bridge?  I can find no longer output

    Hi kanderson

    What version of the bridge are you using?

    Please consult Bridge help | Create PDF and web galleries

    Similar thread:-blank output (bridge CC) Module

    Concerning

    Assani

  • How to create the new file alertlog.

    How to create the new file alertlog. Need the DB bounce?

    -Chandra

    H wrote:
    How to create the new file alertlog. Need the DB bounce?

    -Chandra

    Is that your alert log file size seems huge? Rename it with another name, Oracle will automatically creates a new name that alert_.ora

Maybe you are looking for