How to remove zip file after unzipping the file

I'm trying to delete zipfile in my program after unzipping the file. any suggestions? provide any sample code.
Thanks
kishore

File.delete()

Similar Messages

  • How read the PDF and XML files after Unzipping the folder

    Hi Gurus,
    I have a zipped folder and i this two types of files .XML and .PDF files.
    I am able to unzip the folder and reading the .XML files, unable to read the PDF files.
    I want to send this PDF file to the target as it is.
    Please help me.
    Regards
    Sreeni

    Hi,
    Hi ,
    Plse see the below thread
    PI 7.1 : Taking a input PDF file and mapping it to a hexBinary attribute
    It will help you.
    You can write custom adapter modules:
    Java Mappingh;
    SAP Conversion agent:
    http://www.riyaz.net/blog/parsing-pdf-files-using-sap-conversion-agent-part-i/technology/sap/628/
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • I am not able to display or change the file after deleting the file

    Hi All,
    I am checking in the document to content category while creating the DIR.
    I tried to delete the file on my desktop and after i am unable to open the file in CV02N,It gives the below error:
    Error while executing "C:\
    Firdosi\Desktop\gg.txt"
    I changed the settings in define workstation applications also and i ticked on Data check of.
    Please advice.
    Muzamil

    Hi Muzamil,
    The error is occuring because you have not checked-in the document before deleting. First you need to save the DIR and then you can delete the file from your desktop. Then only SAP DMS can retrieve the file from content server and display on screen.
    If you have only selected the file which is not checked-in means DIR not saved. And suddenly you tried to delete the original file from desktop. It means the recod is not saved in SAP DMS and before that you have tried to delete it.
    This is standard behaviour and such type of files can't be retrieved from content serever as it's original is not saved properly i.e. checked-in.
    Hope this will resolve the query.
    Regards,
    Ravindra

  • I have finally figured out how to export an iphoto album so that I can maintain the proper order of the photos after burning the file. How do I keep each individual photo title and description after exporting and burning?

    I have finally figured out how to export an iphoto album so that I can maintain the proper order of the photos after burning the file. How do I keep each individual photo title and description after exporting and burning?  Presently after exporting and burning each photo is identified by the file name rather than each individual title description.  

    File name and Title are not the same thing.
    Filename is attached to the Jpeg file in the Finder.
    Title is attached to the photo within the Jpeg file - as is the description. These are written to the Exif and IPTC metadata on export.
    So: File -> Export. Kind: Jpeg or Tiff and Check the box at 'Title and Keywords'. This will write the Title, keywords and descriptions (though not explicitly stated) to the metadata. This can then be viewed in any app that understand this material.
    You can choose, if you wish, to also use the Title as a Filename - that's an option at File Name
    Regards
    TD

  • Why can't I open and retrieve my files from iPhoto and my address book after importing the files from my Power mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    Why can't I open and retrieve my files from iPhoto and my Address Book after importing the files from my Power Mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    For your addressbook, export the files to vCard on the PowerMac, then bring them over to your Mac Pro. For your iPhoto, copy the Users -> yourname -> Pictures folder to your Desktop on the Mac Pro, and open iPhoto on the Mac Pro holding the command and option keys.  Select the library file from that Pictures folder and open it.  It should import all the pictures into iPhoto as part of the rebuild process.  Other PowerPC to Intel migration issues are covered here: https://discussions.apple.com/docs/DOC-2295

  • How do i download and e-mail from a zip drive without opening the file

    How do I download and e-mail data from a zip drive without opening the file?

    Hi.
    If you have a Zip drive, you can handle the file as you would any other file. Copy and paste.  Drag and drop. Select and attach as an email attachment.
    Zip drive data discs came in two capacities, 100MB and 250MB. So the largest files would not exceed those capacities, depending on the media from which they are pulled.
    The trick, I should think, would be finding a working drive that can read the media... and hope that media is not corrupted. Zip media was notorious for failing.
    I hope this helps.

  • How to remove the 'all files' option on the file dialog

    Hi I was wondering if anyone has a good way to tackle this problem.
    In my application the user has the ability to load the contents of a tdms file into an xy graph. I am accomplishing this with a simple file control. I'd like to make sure that they can't load a file that is not a .tdms. I have used the pattern *.tdms on the properties for the control and the default view of the browse popup shows only .tdms files as I would expect but there is still an option for the user to change the file type to 'all files'
    What I'd like to do is either remove the ability for the user to choose the 'all files' type. Failing that, I'll probably have to have my VI look at the file extension before loading the file to ensure that it is the right kind to avoid errors.
    Are there any other options that I should look at for accomplishing this task?

    You must also take care of the fools that "convert" any other file (*.txt, *.xls, *.pdf, etc.)  to tdms by simply changing the extension in explorer.
    (There are a few people here that "convert" *.bmp to *.jpg this way because attachments of bitmaps are not allowed. Just because the browser is smart enough to still display it despite the incorrect extension does not make it a jpeg image. Others write to an ASCII formatted txt file but give it an *.xls extension. While this does not make it an excel file, it forces the file to be opened by excel, which does its best to make sense of it. Works most of the time ).
    Clearly, you need to check for proper extension after selection, but you should also handle the errors properly if the file is name *.tdms, but actually is something else.
    LabVIEW Champion . Do more with less code and in less time .

  • Unzip the file archived by the File adapter

    Hi Experts,
    we have a scenario where we are archiving a xml file using the File adapter and also it is being zipped by the OS command.
    the script not only zips the file, it also rename the file from *.zip to *.xml.
    Hence after archiving when I am trying to open it, the content appears to be junk.
    Please suggest how to unzip the file as it got a extension *.xml.
    And I also tried renaming the file to *.zip and then to uncompress, but it shows below error
    Cannot open : it does not appear to be a valid archive
    Thanks in advance,
    MK

    hi Mk,
    instead of using OS command try using the exesting module provided by the SAP, so your job will be easy.
    follow this steps in the module processing for UN ZIP
    Processing sequence:
    Module name: AF_Modules/PayloadZipBean
    Type: Local Enterprise Bean
    Module key: 3
    u2022 Module configuration:
    Module key: 3
    Parameter name: zip.mode
    Parameter value: unzip.
    in the commincation channel specify filename.xml
    so you can open the file in XML format
    Thanks,
    Madhav
    Note:points if useful
    Edited by: madhav poosarla on Aug 14, 2008 8:31 AM

  • I need help. My ipad 2 was stuck in recovery mode. i tried to connect it to itunes and restore but after downloading the file and extracting the software there is a pop up message that says "the device is full" i dont know what to do. Its been 2 days now.

    I need help. My ipad 2 was stuck in recovery mode. i tried to connect it to itunes and restore but after downloading the file and extracting the software there is a pop up message that says "the device is full. Deleting files and emptying your recycle been will help you restore." how am i going to erase files if i can't open my ipad. i dont know what to do. Its been 2 days now. please help. thanks.

    yes i am sure. This are the exact words... "The iPad "iPad" could not be restored. The disk you are attempting to use is full. (Removing files and emptying the recycle bin will free up additional space". i tried some options, hard reset, redsnow, tinyumbrella but still it's stuck.

  • Unzipping the file at AE

    Hi ,
    I am doing file to idoc scenario. I am getting the file in zip format. File adaptor poll the file in zip format, Now my requirement is to extract the file in text format before content conversion .... can we use the OS command option in sender file adaptor configuration if yes  then how????
    Thanks in advanve
    Regards
    Swatantra

    Hi Vijay,
    In Sender file configuration ( In communication channel ) it allows to call the OS system commands and process them before calling mapping program .
    In your Communication channel in "Run operating System Command Before Message Processing " set a system command which extracts the zip file located in the path specified
    The command format is:
        winzip32 -e [options] filename[.zip] folder
    Sample :::
    C:\Program Files\WinZip>WINZIP32 -e Example.zip Example
    After extracting you will get a folder get created by the name specified in command if it doesnot exist. Set polling on that folder with the filename like *.txt and process it with file content conversion.
    Let me know if you have queries.
    Nanda

  • How to remove a click from a sequence file mp4 or mp3, and make it only sequence left and right in GarageBand?

    How to remove a click from a sequence file mp4 or mp3, and make it only sequence left and right in GarageBand?

    "adrianTNT" <[email protected]> wrote in message
    news:e6aitv$hkm$[email protected]..
    >
    quote:
    Originally posted by:
    kglad
    > you're welcome. with your solution loading another mp3,
    are you sure it stops
    > the download of the first mp3?
    > Yes, it seems to work fine, it loads another sound in
    same sound (my_sound)
    > and it seems to replace loaded progress with the empty
    sound I gave and stops
    > previous loading.
    > I look at traffic icons on task bar and I see that there
    is no network traffic
    > after I click "stop" before this I could see continuous
    traffic while sound was
    > loading in background.
    Yeah, I remember someone posted that solution a long time
    ago. It seems if you load a file with the same name the cache
    doesn't
    know any better and adjusts the download size to the smaller
    one. Maybe it's a good way to do it! Could it be a way to remove an
    mp3 from someone's cache after it plays? hmmmm Will have to
    do more testing.
    tralfaz

  • How to delete a jar file after loading image files from it

    Hi,
    How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
        URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
        Icon icon = new ImageIcon(url);
        System.out.println("icon size ? " + icon.getIconHeight());
        File file = new File("c:\\a.jar");
        while(file.exists())
            file.delete();
            try
                Thread.sleep(100);
            catch (InterruptedException ignored)
        System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
    Justin Jan

    I am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
            try
                URL url = new URL("jar:file:/C:\\a.jar!/a.gif");           
             URLConnection conn = url.openConnection();
               conn.setDefaultUseCaches(false);
             conn.setUseCaches(false);
                Icon icon = new ImageIcon(url);
                System.out.println("icon size ? " + icon.getIconHeight());
                url.openConnection().getInputStream().close();
                System.gc();
             System.runFinalization();
                File file = new File("c:\\a.jar");
                while (file.exists())
                    file.delete();
                    try
                        Thread.sleep(10);
                    catch (InterruptedException ignored)
                System.out.println("file deleted.");
            catch (Throwable t)
                t.printStackTrace();

  • HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE

    HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE IN PNG FORMAT...

    I ususally do that type of thing with a state machine... read a token, look for what is next, and if it's the closing token, I don't write it out. You have well defined opening token syntax and closing token syntax, so it should be relatively easy.

  • Anyone know how to remove a envelope around a PDF file?

    anyone know how to remove an envelope from a PDF file imported to AI?

    Ask your question in the Acrobat forum:
    http://forums.adobe.com/community/acrobat/acrobat_windows

  • Unzip the file

    I need to Unzip a file from Folder 1 and place it in Folder2.
    Folder 1 has a zip file, which a txt file embedded in it. PI need to unzip the file and place the file in Folder2 with same name.
    I have created a Configuration Scenario for this, no IR objects.
    I have used PayloadZipBean with ModuleConfiguration as
    ParameterName- zipmode and ParamterValue - unzip in my sender file channel and same  is used in receiver channel.
    For some reason when I see the payload in sender communication channel log, it is automatically converted to XML with some junk values along with the data.
    Another issue is although I have checked the Adapter Specific Properties on both the channels, it expects a name on Receiver file channel. So I have given a dummy name there. File got created in Folder2 but with some junk values in XML format.
    Any thoughts please.

    Thank You both.
    Greg - your idea worked.
    On the other issue looks like I can not use Adapter Specific Properties on both the channels. when I use ASMA File got created in Folder2 but with some junk values in XML format.
    Looks like it expects a name on Receiver file channel. So I have given a dummy name there.
    Edited by: Vamsi on Feb 23, 2012 6:15 PM

Maybe you are looking for

  • I have an iPod Touch and an iPad. Cannot connect to iCloud.

    Trying to connect to the iCloud I get message that "the certificate for this server in invalid". This happens with both my iPod Touch and iPad running ios 5. Trying to connect through an Airport Express. Are there setting for Airport that need to be

  • Making AQ usage transactional across session beans, using mosly JMS syntax

    I need to determine what I need to have in place in order for JMS/AQ messages to be "fully transactional". I have a J2EE server application that will send JMS/AQ messages to a queue. I have a standalone application that reads messages from the queue,

  • EXPORTING MULTIPLE FCS2 SEQUENCES?

    I have two (2) FCS2 projects (different filenames) with two(2) seperate sequences in each project. I am trying to set up a Compressor batch that will allow me to export all four (4) Sequences from one batch. So far, I have only been able to export on

  • How to call a particular event?

    Hello All, How to call a particular event like handle_data_changed after you press a button which is created in ALV. Regards, Lisa.

  • Savepoint help

    I have a series of SQL statements in a script file. Need to commit only if all statements are executed successfully. (script will be executed in sqlplus) Is there a way I can execute without using begin... end. if we are using begin... end, if any on