How to zip a directory and retain tree.

I would like to zip a directory and retain the subdirectories. Is their any built in (or otherwise easy) way to do this or should I just make a log file of where each file goes.
Thanks.

Not built in, but you can still do it. Zipping will be a recursive process, just like
a directory structure is, and when creating the ZipEntry, be sure to
set its name to be the path that you want to see in WinZip, for example.
If you google, I am sure you will find examples.

Similar Messages

  • How to ZIP the files and folders/sub folder files using java

    HI All,
    I'm New to this Forum, Could anybody tell me how to zip the files and folders/sub folders using java. For example I have a folder with the name testfolder and side that folder I have some files and some sub folders inside subfolders I have some other files. I need to ZIP the files and folders as they are in same hierarchy.
    Any pointers or help wolud be appritiated.
    Thanks,
    Rajeshbabu V

    [http://www.devx.com/tips/Tip/14049]

  • How to manage Active directory and tools to manage Active Directory

    How to manage Active directory and which tools we use?

    You can use Microsoft Active Directory management tools:
    http://technet.microsoft.com/en-us/library/aa998508(EXCHG.65).aspx
    http://technet.microsoft.com/en-us/library/aa998508(EXCHG.65).aspx
    erview of Server Message Block signing
    http://support.microsoft.com/kb/887429/en-us
    Remote Server Administration Tools for Windows 7:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=en
    AD Admin Center:
    http://technet.microsoft.com/en-us/library/dd560651(WS.10).aspx
    http://technet.microsoft.com/en-us/library/dd560652(WS.10).aspx
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX http://blogs.sivarajan.com/ http://publications.sivarajan.com/ This posting is provided "AS IS" with no warranties, and confers no rights.

  • How to zip report output and send via mail from application

    Hello,
    I want to know how to zip the report output and send it by mail to concerned person from application
    I want this as the report is having more than 70000s of records.
    Also the XLS has the limitation of 2^16 records and the report is having more than this
    Any help is very much appreciated
    Regards,
    Vani

    1: Make a Dummy report. From some post parameter form trigger, run your original report with "srw.runreport" call. The original report can generate output to a file.
    2: Then withing this dummy report run, call a user exit to zip the
    original reports output. You need to write this user exit and attach them
    with reports.
    3: Now use Report 9i distribution for this dummy report to sent this external zip file through mail.
    With Regards
    Reports Team

  • How to paste from Word and retain formating

    My co-worker and I are both running Dreamweaver. However for
    some reason I can copy and paste from Word into Dreamweaver and
    retain the formatting (bold/italic etc) but she can not. I've done
    searches on this board and online in general but haven't found
    anything about this issue. Keep in mind that we are not importing
    HTML from word, just basic cutting and pasting. The paragraph
    returns are retained but the bold/italic formatting is lost. We
    don't need the styles to come through (and would rather they not
    -they tend to corrupt the html-it get's all wonky) just the
    formatting.
    I'm sure it's something silly like a preference in Word or
    Dreamweaver but we can't seem to find it, or any one else who is
    having the same issue.
    Our next step is to reinstall Dreamweaver to see if that may
    clear the issue...
    Any thoughts?

    In DW 8 try PASTE SPECIAL. It gives you options for how much
    or how little
    formatting you want to retain when you paste.
    MD
    Scimino wrote:
    > My co-worker and I are both running Dreamweaver. However
    for some
    > reason I can copy and paste from Word into Dreamweaver
    and retain the
    > formatting (bold/italic etc) but she can not. I've done
    searches on
    > this board and online in general but haven't found
    anything about
    > this issue. Keep in mind that we are not importing HTML
    from word,
    > just basic cutting and pasting. The paragraph returns
    are retained
    > but the bold/italic formatting is lost. We don't need
    the styles to
    > come through (and would rather they not -they tend to
    corrupt the
    > html-it get's all wonky) just the formatting.
    >
    > I'm sure it's something silly like a preference in Word
    or
    > Dreamweaver but we can't seem to find it, or any one
    else who is
    > having the same issue.
    >
    > Our next step is to reinstall Dreamweaver to see if that
    may clear
    > the issue...
    >
    > Any thoughts?

  • How to Zip a file and find it size using ABAP code

    Hi All,
    My requirement is to extract a file from Al11 ZIP it and find it size. 
    Please let me know whether there are any Function modules or Classes for Zipping and finding the size of it.
    Note : Used Class "cl_abap_zip" but the output at in chinese language.
    Thanks in advancve for your support.
    Regards
    Jithu

    Check https://wiki.sdn.sap.com/wiki/display/profile/GZIP
    and how to zip and unzip a file in abap
    May it useful
    Kanagaraja L

  • How to implement uplink redundancy and spanning tree in SFP-300 switches

    We have several Small Business 300 Series Managed Switches, the 10/100 ones with PoE, the first generation ones.
    We've been advised to implement uplink redundancy and spanning tree on these switches.
    I'm sure spanning tree is a checkbox somewhere in the web interface.
    How does one implement uplink redundancy besides interconnecting the switches plus turning on spanning tree (RSTP)??
    Thank you, Tom
    P.S. I also tried to file a service request but it does not work, I get: "Error 500: Request processing failed; nested exception is java.lang.NullPointerException"

    Hello Thomas,
    Thanks for using the Cisco Small Business eSupport Community. I've looked through the articles that are available in our Knowledge Base and found a few that I hope will be able to assist you in setting up spanning tree and link redundancy on your SFP300s:
    In regards to link redundancy, the following article on LAG can hopefully provide some guidance:
    Link Aggregate Group (LAG) Configuration on 200/300 Series Managed Switches
    And for your question on setting up STP, here are a few articles with additional information:
    Configure Spanning Tree Protocol (STP) Status and Global Settings on 200/300 Series Managed Switches
    Setup Spanning Tree Protocol (STP) on a Interface on the 300 Series Managed Switches
    I hope that this information helps! Please remember to mark your question as answered and rate if this solves your problem.
    Best,
    Gunner

  • How can I get Directory and Files from a Maped Networkdrive of the AppS

    Hello,
    we have the following Situation.
    We have a Windows-Server (Server-A) in an Network with ActivDirectory and an Windows-Server (Server-B with an WebApplicationServer outside of these ActivDirectory as standalone.
    On Server-B we mapped a Directory from Server-A (FileExplorer and then MapNetworkDrives) as Drive Q.
    Now i tried to get the Directory of Q:\abcd but it doesn't work.
    I tried the FM EPS_GET_DIRECTORY_LISTING and also RZL_READ_DIR, but both doesn't worked.
    RZL_READ_DIR is doing a "CALL 'ALERTS' ..." and is comming back with sy-subrc = 1
    EPS_GET_DIRECTORY_LISTING is doing a "CALL 'C_DIR_READ_FINISH'..." and comes back with "Wrong order of calls" in the Field file-errmsg. Next Call is "CALL 'C_DIR_READ_START'..." and this comes back with "opendir" in Field file-errmsg.
    I tried the same with two Servers in the same ActivDirectory-Network. The Result was the same, i don't get the directory of the mapped drive. But now i get from the Call "CALL 'C_DIR_READ_START'..." the file-errmsg "opendir: Not a directory" and file-errno 20.
    Is there any idea for solving my Problem?
    I have to get this directory, read the files from the List and have to rename them after wriing the data to our databasefile.
    I want to read them with OPEN DATASET, rename them by writing a new File (also OPEN DATASET) and after that i do an DELETE DATASET.
    Thanks and Greetings Matthias
    Edited by: Matthias Horstmann on Mar 25, 2009 4:12 PM
    Filled in Scenario with 2 Servers in same AD-Network

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • How to map active directory and wordpress ?

    i want to import my existing wordpress users in Active Directory but status is not changed.
    This topic first appeared in the Spiceworks Community

    1) I want to Import wordpress user in active Directory
    2) so,I install one plugin like "Active Directory Integrate".
    3) I configure this plugin and import users in Active Directory
    4) I want to Enable user in Active directory and importing in Active Direcoty.
    help me

  • How to recreate ~/.ssh directory and files

    Hi Folks,
    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    Any tips/ideas much appreciated.
    Thanks!
    Doug

    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    ssh-keygen -t rsa
    will create the .ssh directory and the rsa files. known_hosts will be created as the account is used to ssh/scp/sftp into other accounts.
    If other systems are to be allowed to login to this account, then copy their id_rsa.pub files and append them to .ssh/authorized_keys. That will allow them access to this account.
    And if this account is suppose to be able to login to other systems, append the newly created id_rsa.pub file to the other system account's .ssh/authorized_keys file.
    Check *man ssh* to make sure all permissions are set correctly. If some of the files and/or directories are too permissive, ssh will not work correctly, as it will assume your account can be compromised.

  • How do she change ID and retain Contacts?

    My daughter and I share my Apple ID. We want to give her a new ID on her iPhone 4. How does she create a new ID and still retain her Contacts, Calendar, etc?
    Then, we would like to have her iCloud stuff and my iCloud stuff on our shared iMac. Can we have separate Contacts, etc on the iMac?

    Thank you. Ok, so what I'd like to see happen is:
    She needs to have her own Apple ID, not sharing mine anymore.
    She needs to keep her contacts, etc, on her own iPhone 4.
    I eventually will get an iPhone.
    We do share an iMac, which will have Mavericks.
    So, can she have her contacts on the iMac, and can I have my contacts on the iMac, but not Merged? Can Contacts and Calendar show separated folders of each of our own contacts and calendar events?
    We don't want my Contacts to be loaded on her phone.
    I hope this makes better sense.
    Also, I have a MBP retina which, when I set it up, where I would also like to keep my own Contacts and Calendar events for when I travel.
    Thanks again.

  • How i configure external directory and email

    hi every one
    i have just installed and login to oracle beekeeper successfully. now i want to intergate the external directory to my active directory so that all users in it will be mapped in oracle beehive secondly i can use them for email purpose.
    i am really new to oracle beehive , i have read the administration manuals. but still confusing how to start , the parameters in external directory creation for active directory cannot understandable for me, what does authectic attributes means.
    kindly guide me in this regard and secondly if any image base document avaible so that i configure it through that.
    regards
    Oraclebeehive new user

    Hello,
    The primary Authentication Attribute, is just the LDAP attribute you will use to be able to log on Beehive
    That can be an UID, the email address, the cn or with AD the sAMAccount
    eg: uid: 123455667
    mail: [email protected]
    cn: firstname.lastname
    these attributes and their associated values are on AD and must be available for ALL employees as well as UNIQUE.
    Often the email address, the UID or the sAMAccount have unique value.
    Hope that help
    However, You may want to take some days of expertise to help you on this setting. That will simplify and speed up your learning curve and Beehive implementation.
    Regards,
    Fred

  • How to get current directory and enviroment variables

    Hello, 
       1.- Is there a global variable to get the actual (project, where is DSB and DSQ files) directory? 
       2.- Is there a way to get User directory like reading enviroment variables from Operative System? 
    Thanks in advance.
    PD: I'm using Dasylab12
    Solved!
    Go to Solution.

    Yes, use System Strings
    For example, ${DATA_FOLDER}.
    The easiest way to get the list is to right click and select Global Strings. The bottom half of the dialog box lists system strings, including date, time, the name of the worksheet, with or without path, the DEFAULT folders for worksheet, data, other, black box, etc. 
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • How to hide a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

  • File Sender Adapter - Dinamic Source Directory and Filename

    Hi Experts,
    I have to receive in XI a file and depeding of some info, put it in diferent directories with diferent fieldnames.
    In receiver File Adapter we can set the directory and fieldname dinamically by ABAP-CLASS mapping, but not in Sender.
    I've read Michal's blog
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    and sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    But, I can't find Adapter-Specific Message Attributes in my File Adapter...:-) I've checked SP version is SP16, where are my Adapter-Specific Message Attributes?
    How can I set Directory and Fieldname at runtime for Sender File Adapter?
    Please help...
    Thanks all in advance,
    Regards.
    Urtzi.

    Hi Nilesh,
    Your threath is not about my issue...
    Answering to other friends, what I want is not to write p.e.: '/server/dir/' in each File Sender Adapter Channel, and put it with any other way looking some 'customizing' or checking a condition.
    The problem is that frecuently in the Company changes servers and we have to enter to the Directory and change every Channel one by one...We would like to reduce the maintain of the Channels with a mapping, variable, customizing table...or something similar. Do I explain?
    I don't know if its possible but I had the hope...:-)
    Thanks all.
    Urtzi.

Maybe you are looking for

  • After configuring my airport express, airport utility can no longer see it.

    Configuring airport express seems to make it invisible to itunes and the airport utility that configured it. This seems to have started happening since Yosemite.

  • How to use array as parameter in procedure

    Hello, I am using Oracle SQL Developer 1.5.5 I wanted to write a procedure which does insert into table. It should take 2 parameters.How to take array as parameter? One is a array of strings ('abc','def','erg') and another is a varchar ('abc'). How t

  • I cant access Itunes store or itunes help

    Its not blocked on any firewall and im connected to the internet. I've changed hosts file and everything in the troubleshoot section, still not working, please help. (Build 8250) Alienware M11xR3 iTunes 10.6.1.7 QuickTime not available FairPlay 1.14.

  • Most file icons in ~library invisible?

    Hi, Recently I installed OS10.8.2. Now I notice that most file icons in my user library are missing. Instead with each file there is just a white space on the left of the name. Even though I don't miss them terribly, it is a bit strange. How can I ge

  • Can't save swatch library in ID 5.5

    Hi, I've just spent a half hour creating a new swatch palette of our company colors. I want to save them all out as a swatch library file. But, the "save as" pulldown choice is grayed out. Why? I know I've used this function before. Thanks, Peter