Oracle Solaris Zip files names

Hi,
I am going to install oracle on solaris.I downloaded 9i sotware from oracle site and wrote it in cd's. The zip file name is 92010Sol_Disk1.cpio.gz.
When I insert the cd the zip file name is showing differenlty like 920_0001.gz.
My question is why its showing different file name?
THanks.

Sounds like the program changed the long name to an 8.3 file format.
This is an 'old' article, but it may pertain to what happened:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/win9x/lfn_4ugj.asp
To quote the propaganda:
If the long file name does not follow the standard 8.3 format, the system automatically generates an alias, using the following scheme to ensure that the alias has a unique name. The system tries to create a name by using the first 6 characters of the long file name followed by a numeric tail. A numeric tail consists of the tilde (~) character followed by a number. The system starts with the number 1 in the numeric tail. If that file name already exists, it uses the number 2. It continues in this fashion until a unique name is found. If the long file name has a file name extension, the system will use the first three characters of the long file name's extension as the extension for the alias.
As the number of digits in the numeric tail grows, fewer characters in the long file name are used for the 8 characters in the alias. For example, the alias for Long File Name.File would be LONGF~10.FIL if the names LONGFI~1.FIL through LONGFI~9.FIL already existed in the directory. Applications can override the default alias numbering scheme when creating a file by specifying the OPEN_FLAGS_ALIAS_HINT value and supplying a number to use in the call to Create or Open File (Interrupt 21h Function 716Ch).
A period is just another character in a long file name. Leading periods are allowed in a long file name, but trailing periods are stripped. A file can have multiple periods as part of its name. For example, MyFile.081293.Document is a valid file name, and its alias will be MYFILE~1.DOC. The first three characters after the last period in the file name are used as the file name extension for the alias, as long as the last period is not a leading period. A file name of .login is also valid, and its alias is LOGIN~1.
So it [the software creating the cd] could have changed 92010Sol_Disk1.cpio.gz into 920_0001.gz.

Similar Messages

  • Can not Unzip oracle 11g zip file for x64

    Hi,
    I have downloaded oracle 11g file from (window 2008 server with x64)
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win64soft.html
    File Name      win64_11gR1_database_1013.zip
    when i try to unzip this file I got an error like:
    Archive: win64_11gR1_database_1013.zip
    End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.unzip: cannot find zipfile directory in win64_11gR1_database_1013.zip,and cannot find win64_11gR1_database_1013.zip.zip, period.
    error indicates me towards two ways
    1] File is invalid - I have downloaded same file twice
    2] File is distributed in multiple files- site have only downloadable link
    Can any one please help me to get out of it?
    Thanks and Regards
    B.Sandeep

    If you are really on Windows 2008, this file is wrong , you need
    Oracle Database 11g Release 1 (11.1.0.7.0)
    for Microsoft Windows Server 2008 x64
    Of course that doesn't necessarily solve your general unzip problem, compare the size of the downloaded file with the size on the download site. If there's a difference,download is not complete for whatever reason.
    Werner

  • R12 Oracle Diagnostics Zip files

    Sorry if this has been asked before but my understanding is Oracle Support's preference when uploading multiple files to an SR is to zip them into a single zip file.
    However when you are asked by Support to run multiple R12 Oracle Diagnostics each resulting html file arrives compressed in its own zip file.
    This creates a problem because as far as I know you cannot zip multiple zip files together and you must go through the laborious task of extracting out each html file, renaming it so the file name is meaningful, and then zip then all up together into a single zip file.
    Not an issue for 2 or 3 but when you are asked for diagnostics on 20 transactions it can take some time.
    Does anyone know a way around this by perhaps obtaining the resulting html file uncompressed and named with the file name you specified at run time?
    Regards,
    Jim.
    Edited by: Jimbo on 09-Mar-2012 04:16

    Well this is embarrasing. I've just rechecked and you're quite right, it is possible to zip 2 zip files together.
    I could have sworn I've tried this before and it didn't work.
    In any case thank you.

  • Flat file to Oracle: Dynamic flat file name

    Hi,
    I am doing a transformation from flat file to oracle.
    At one place there is requirement like flat file name is dynamic.
    *eg. D:\ Flat DB\ Sample<Date>.txt   
    examples may be like Sample09012012,Sample08012012 *
    As in physical schema we specify name of file is there any way by which we can specify dynamic file name.
    as stated above.
    Any help and suggestions would be appreciated.

    Hi,
    Yes you can specify a variable in the file name ( the resource name filed) .
    You need to refresh the variable in a package and then use the interface to pick data from the file .
    Thanks,
    Sutirtha

  • Oracle 11g zip file Checksum

    Hi,
    i have downloaded oracle 11g R1 zip file for linux x86.The checksum of the zip file
    on the download page is "302838609"
    However, when i find out checksum through md5sum.exe dos utility after downloading the zip file, it gives me the following checksum value
    5678e0db6ccc50734b9826c4b57ce508
    can any one plz tell me which one is correct?
    What does this 302838609 checksum mean, since we dont get such small checksum value for any download
    Thanks in advance
    Regards,
    Abdul

    Hi Syed,
    Yes I understand that checksum will be the indication of a successful download or unsuccessful one.As I said I am no expert in checksum things so teh best that I can tell is that try unizipping it and see if the installer works.If it works than the number doesnt matter.Well its not a very helpful soolution I agree but thats the best I can tell.Or if you are not convinced than just download onemoretime.:)
    Aman....

  • Oracle 817 ZIP File

    Hello Everyone !
    Recently I downloaded Oracle 817 , that means nt817se.zip
    from the server in UK. When i tried to unzip (WinZip 9.0) I got the following errors :
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.bali.ewt\3.3.6.0.0a\1\DataFiles\
    Extracting lib.0.0.jar
    bad CRC e6c0b8ee (should be ed9d4240)
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.apache.jdk\1.2.2a\1\DataFiles\
    Extracting jdk122_NT.0.0.jar
    bad CRC 474fb907 (should be 20484f66)
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.rdbms\8.1.7.0.0\1\DataFiles\
    Extracting exec.0.0.jar
    bad CRC 1b1647ca (should be 5cb588a0)
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.rdbms.seeddb\8.1.7.0.0\1\DataFiles\Expanded\seed\
    Extracting rbs1risc.0.0.jar
    bad CRC 9062f950 (should be d7f4192f)
    Extracting sys1risc.0.0.jar
    bad CRC 5536ab75 (should be 5e2cc9b1)
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.sysman.website\2.2.0.0.0\1\DataFiles\Expanded\nls_files\
    Extracting zh_CNMsgClasses.jar
    bad CRC 21476929 (should be f973ad08)
    Extracting jarfiles.0.0.jar
    bad CRC 0a0df146 (should be 9016b255)
    creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.sysman.emcommon\2.2.0.0.0\1\DataFiles\Expanded\Scripts\
    Extracting jarFiles.0.0.jar
    bad CRC 23463ff0 (should be 6f7d05ac)
    I tried to download again, then tried to repair the zip file, but without success. Does anyone know where to get the above listed files seperately ?
    Best regards,
    E. Büscher

    I would post this in the
    Forums Home » Oracle Technology Network (OTN) » OTN Member Services » Downloads
    General Database Discussions
    This forum is monitored by Oracle staff.
    They can check if the Zip-File on the server is corrupt or might have other options to solve your problem

  • Oracle 10.2.0.5 software download for HP-UX IA --missing a zip file?

    Hi all,
    Has anyone successfully downloaded and installed the oracle 10.2.0.5 patchset for HP/UX IA 64-bit ?
    We downloaded the fie "'51040056-2.zip  Oracle RDBMS patch 10.2.0.5 for hp-ux ia64 64 bit.'and 'un-jarred' it according to sap's directions.
    However,when we try to install the oracle 10.20.5 patchset it complains about missing files,such as oracle.bali.cabo.
    Since the zip file name appears to indicate that it is 2nd file of 2,we are wondering if there should be another zipfile to download on SAP's site? We only see the file indicated above.
    If anyone has done this download/install succesfully for hp-ux ia 64,would appreciate your advice.
    Thanks in advance for any help you can give us,
    Ann

    Hello Ann,
    Where have you download the patchset?
    Check note [871735|http://service.sap.com/sap/support/notes/871735|Current patch set for Oracle 10.2.0] for further information.
    Regards,
    Eduardo Rezende

  • LONG FILE NAME SUPPORT IN SOLARIS 10 INTEL BASED

    Hi,
    I am facing the problem in solaris in which, i found that whenever I am copying any file directly from windows based PC to solaris the file name become automataically squizzes to 8+3 [dos file support]. In this case I am facing the problem in which I have to again rename file as actual then only it works properly.
    i.e the actual file name "abcdefghij.iope" is converted to "abcdefg_.iop"
    Can you confirm is there any setting to avoid this in solaris.
    RAJAN IYER

    You post your questions all over the Internet, in many different places ...
    ... you get partial answers all over the Internet, in many different places.
    http://www.linuxquestions.org/questions/showthread.php?t=451208
    You're seeing a limitation of Windows and your CD writing software within Windows, not of Solaris.
    The answer is in that other website's forum thread.

  • Setting the name of streamed zip file

    Hi,
    I have a servlet which creates a zip file with documents retrieved from a database. To create the zip file I am using the ZipOutputStream class and adding the documents one at a time to this object. This is all working fine.
    The problem I have is pretty simple, in that I can't seem to find a way in which to set the name of the zip file. This must be possible! At the moment it appears to be setting the name of the zip file to the name of the class that created it. In this case my class is called DocumentPacker and what comes back from the servlet is a zip file called DocumentPacker.zip. This wouldn't be so bad, but if you're creating the zip file for a user that does not have cookies enabled, it appends the session id to the end of the zip file name which i don't want.
    I am creating my ZipOutputStream like this:
    ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));
    and then adding the documents one at a time using a BufferedInputStream.).
    Any help on how to set the name would be much appreciated
    Thanks
    Claire

    Your servlet must set some headers on the HTTP response (Content-Type as "application/zip", Content-Disposition as "attachment; filename=yourfilename.zip")
    Read the RFC1806 document.
    Content-Type: application/zip
    Content-Disposition: attachment; filename=genome.jpeg

  • PI FTP get zip file and want to unzip with origin filenames

    Hello everybody,
    we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
    I don't want to use the OS Commands to do this.
    I know that's not realy an workitem for PI.
    Is there anyone, who has an idea. Thanks
    Kind regards - Jochen

    Hi,
    Try out this blog
    Working with the PayloadZipBean module of the XI Adapter Framework
    regards,
    venkat.

  • File Adapter to read Zip file and send it as input to another webservice

    Hi,
    I have the below requirement:
    1. A service will generate 3 attachments and place it in a particular directory.
    2. SOA service has to pick those 3 files and send those files as input to another custom application which will email.
    Design :
    1. First SOA will create an archive file of those 3 attachements and then file adapter will poll for that zip file in that location and send that file as a whole to the custom application.
    Query:
    Now my question, is the above design feasible? If so, how to configure the file adapter to pass the file as input to that custom application?
    Kindly do the needful
    Thanks,
    Priya

    You can accomplish this via java embedding activity...Create a java embedding, which will create a zip file.. this java code is easy to implement..
    You can also do away with un-necessary polling file adapter.. and you can use "Synchronous File Read" operation of File Adapter.. For Sync Read, you'll have to pass the zip file name, which you can easily fetch from java embedding activity..
    Let me know, if this doesn't work.

  • ByteArrayInputStream as source for zip file entry corrupts the ByteArray

    Hi All,
    I have managed to create and add a (in-memory) zip file as an email attachment. I add a file to the zip file , then push data to this file via a ByteArrayInputStream.
    Adding the file (created via ByteArrayInputStream) to an email works perfectly. If i then add another step and zip this file it corrupts the output.
    It looks like it is turning the carriage return into a [] . Its 'almost right' as when I cut & paste the contents of the txt file i created (from the zip file) into Word it displays correctly, with the carriage returns. Is it some kind of encoding problem, or mime type issue?
    My ByteArrayInputStream uses buf.append("\n"); for carriage returns. I think the problem is with
    ByteArrayInputStream baIn = new  ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );where I think i need to encode this somehow. Here is the complete code to create and add the zip file to an email. Any isuggestions will be appreciated.
    //START of new ZIP code    
                                                                                             /* Specify files to be zipped */
                                                                                            // Create temp file.
                                                                                            //File temp = File.createTempFile(fileName, ".txt");                           
                                                                                            //temp.deleteOnExit();                                                           
                                                                                            //BufferedWriter bOut = new BufferedWriter(new FileWriter(temp));                                                          
                                                                                            //ByteArrayInputStream baInTemp = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );
                                                                                            //bOut.write( baInTemp.toString() );
                                                                                            //bOut.close();
                                                                                             String[] filesToZip = new String[3];
                                                                                             filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
                                                                                             filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
                                                                                             filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
                                                                                             final String fileToZip = fileName;
                                                                                             /*  Create a memory buffer to store the ByteArray, fixed size */                                                         
                                                                                             byte[] buffer = new byte[18024];
                                                                                             /* Specify zip file name */
                                                                                             String zipFileName= eq_rt.getReportName() + ".zip";
                                                                                             try {
                                                                                                 /* Create ZipOutputStream to store the FileOutputStream */
                                                                                                 // ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
                                                                                                 ByteArrayOutputStream byteArray = new ByteArrayOutputStream();                                                             
                                                                                                 ZipOutputStream out = new ZipOutputStream(byteArray);                                                              
                                                                                                 /* Set the compression ratio */
                                                                                                 out.setLevel(Deflater.DEFAULT_COMPRESSION);
                                                                                                 /* iterate through the array of files, adding each to the zip file */
                                                                                                 for (int a = 0; a < filesToZip.length; a++) {
                                                                                                    /* Print the filenumber being added to the zip */
                                                                                                    System.out.println(a);
                                                                                                    /* Associate a file input stream for the current file */
                                                                                                   // FileInputStream in = new FileInputStream(filesToZip[a]);
                                                                                                       This ROCKS as it is passing a array into the text file .getBytes() seems
                                                                                                       to be the KEY in getting ByteArrayInputStream to WORK
                                                                                                    //String strSocketInput = "TAIWAN";
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                                                    //String strSocketInput = new String (getAttachementNoFormat(eq_rt.getStoredProc()).toString() );                                                                                           
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );
                                                                                                     ByteArrayInputStream baIn = new  ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc()) );
                                                                                                    //String strSocketInput = "TAIWAN";
                                                                                                    //ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                                                    /* Add ZIP entry to output stream. */                                                   
                                                                                                    out.putNextEntry(new ZipEntry(filesToZip[a]));                                                  
                                                                                                    /* Transfer bytes from the current file to the ZIP file */
                                                                                                    int len;
                                                                                                    while ((len = baIn.read(buffer)) > 0)
                                                                                                    out.write(buffer, 0, len);
                                                                                                    /* Close the current entry */
                                                                                                    out.closeEntry();
                                                                                                    /* Close the current file input stream */
                                                                                                    baIn.close();                                                   
                                                                                                /* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
                                                                                                out.close();                                                    
                                                                                                /* Create a datasource for email attachment */
                                                                                                // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                                                DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/gzip" );
                                                                                                /* Create a new MIME bodypart */
                                                                                                BodyPart attachment = new MimeBodyPart();
                                                                                                attachment.setDataHandler(new DataHandler(sourcezip));
                                                                                                attachment.setFileName(zipFileName);                       
                                                                                                /* attach the attachemnts to the mail */
                                                                                                multipart.addBodyPart(attachment);                                                       
                                                                                             catch (IllegalArgumentException iae) {
                                                                                               iae.printStackTrace();
                                                                                             catch (FileNotFoundException fnfe) {
                                                                                               fnfe.printStackTrace();
                                                                                             catch (IOException ioe)
                                                                                             ioe.printStackTrace();
                                                                                           // End Of New ZIP code    

    I came up with 'a' solution (not sure if its the best way but appears to work)
    \n = corrupt
    \r\n = ok in zip

  • Need to send the zip file to mail as an attachment

    i want to pick the zip file which consists some 2,3 files inside it. and send as it is to mail as an attachment.what i did is
    i have taken one zip file,,, "testing.zip" inside it i have "test1.txt" & "test2.csv"
    i created sender CC ,,in that i used module payloadzipbean and  unzipped and called the file adapter.. created reciever CC as mail ..used same payload module now here i zipped all the payloads.
    Result..i see the attachment coming as "test1.txt.zip" ..here i can see inside this zipfile my original file names as "test1.txt"&"test2.csv" as i enabled ASMA in both CC.
    issues:i am unable to get the original file name like "testing.zip" ,,
    can anyone help me in this.
    Regards,
    Loordh

    Hi  all,
    as i posted last time my requirement ,i am going with java mapping for my scenario. i am using this code .
    http://wiki.sdn.sap.com/wiki/display/XI/Dynamicfilenameforpass-through+scenario
    this is working perfect for zip file  (file to file) scenario. but my scenario is file to mail ..as i need to send this to mail package there it is throwing error.i am getting  "zip file name as attachment properly but when  i try to  open it is giving error in zip file." this is what i modied code ..i am able to see my messge in sender CC and reciever CC..any java experts please help on this.
    try {
    // create XML structure of mail package
    String output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"
    + "<Subject>" + mailSubject + "</Subject>"
    + "<From>" + mailSender + "</From>"
    + "<To>" + mailReceiver + "</To>"
    + "<Content_Type>multipart/mixed; boundary=\"" + boundary + "\"</Content_Type>"
    + "<Content>";
    out.write(output.getBytes());
    // create the declaration of the MIME parts
    //First part
    output = "--" + boundary + CRLF
    + "Content-Type: text/plain; charset=UTF-8" + CRLF
    //+ "Content-Transfer-Encoding: 8bit" + CRLF
    + "Content-Disposition: inline" + CRLF + CRLF
    + mailContent + CRLF
    //Second part
    + "--" + boundary + CRLF
    + "Content-Type: Application/zip; name=" + attachmentName + CRLF
    //+ "Content-Transfer-Encoding: base64" + CRLF
    + "Content-Disposition: attachment; filename=" + attachmentName + CRLF + CRLF;
    out.write(output.getBytes());
    //Source is taken as attachment
    copySource(in, out);
    out.write("</Content></ns:Mail>".getBytes());
    } catch (IOException e) {
    throw new StreamTransformationException(e.getMessage());
    protected static void copySource(InputStream in, OutputStream out)
    throws IOException {
    byte[] bbuf = new bytehttp://in.available();
    int bblen = in.read(bbuf);
    if (!(bblen < 0)) {
    //String sbuf = new String(bbuf);
    //String encoded = Base64.encode(sbuf);
    // replace all control characters with escape sequences
    //sbuf = sbuf.replaceAll("&", "&");
    //sbuf = sbuf.replaceAll("\"", """);
    //sbuf = sbuf.replaceAll("'", "&apos;");
    //sbuf = sbuf.replaceAll("<"<");
    //sbuf = sbuf.replaceAll(">", ">");
    out.write(bbuf);}}

  • Problem in Unzipping the zip file

    Hi
    I have created a program to unzip the zip files in the folder named after the zip file
    it is working well well when u try to zip zip files put in a directory
    i.e u create a folder name contents and put files into that and then zip it
    but when u directly create a zip file , without putting in a folder
    it creates the folder and zip the files outside the folder
    Another problem is that with the path
    for e.g. suppose the zip file name is contents and path should show
    contents/filename.txt but there are some other files whose path shows
    res/file.txt. In this case it creates a folder of res and put it outside the
    folder with the name of zip file
    I have pasted my code :
    //Unzip the zip files to the folder with their name
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FilenameFilter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Enumeration;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipFile;
    // Getting the path to find the type of files
    public class zipper implements FilenameFilter{
              String ext;
              public zipper(String ext)
                   this.ext="." + ext;
              public boolean accept(File dir,String name)
                   return name.endsWith(ext);
    public static void main(String args[]) throws IOException
              try
                        String dir = "D:/";
                        File f2 = new File(dir);
                        FilenameFilter fn= new zipper("zip");
                        String ss[]=f2.list(fn);
                   for ( int j = 0; j < ss.length; j++)
                        System.out.println(" Extracting ...." + ss[j]) ;
                        String zipFile = dir + ss[j];
                        ZipFile zf = new ZipFile(zipFile);
                        Enumeration entries = zf.entries();
                        String directoryName = zf.getName();
                        directoryName = directoryName.substring(0, (directoryName.indexOf(":" + File.separator) + 2));
                             String folderName = zf.getName();
                             folderName = folderName.substring(0, folderName.lastIndexOf("."));
                             File file1 = new File(folderName);
                             //File file1 = new File(entries.getName());
                             file1.mkdir();
                   while (entries.hasMoreElements())
                             ZipEntry ze = (ZipEntry) entries.nextElement();
                             String path = directoryName + ze.getName() ;
                             String path1 = folderName + ze.getName();
                             //System.out.println(" : " + path);
                             if (ze.getName().endsWith("/"))
                                       File file = new File(path);
                                       file.mkdir();
                                       continue;
                                       //break;
                        BufferedReader bReader = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
         StringBuffer fileBuffer = new StringBuffer(" ");
         String line ;
                        while ((line = bReader.readLine()) != null)
                                  fileBuffer.append(line);
                                  fileBuffer.append("\r\n");
                                  //line = line + "\r\n";
                                  //byte[] b = new byte[line.length()];
                                  //b =line.getBytes();
                                  //out.write();
                        String fileData = fileBuffer.toString();
         File f1 = new File(path);
                        f1.createNewFile();
                        //FileOutputStream out = new FileOutputStream(folderName + "/" + ze.getName());
                        FileOutputStream out = new FileOutputStream(path);
                        long size = ze.getSize();
                        byte[] data1 = new byte[fileData.length()];
                        for (int i = 0; i < fileData.length(); i++)
                                  data1[i] = (byte) fileData.charAt(i);
         out.write(data1);
         out.close();
                        bReader.close();                         
                   } catch (Exception e)
                             e.printStackTrace();
    Thanks in Advance
    Avinash

    String path = directoryName + ze.getName();
    String path1 = folderName + File.separator+ ze.getName();
    File f1 = new File(path); // pass path1 instead of path
    f1.createNewFile();
    FileOutputStream out = new FileOutputStream(path); // pass path1 instead of path

  • Password protect zip files-Terminal help

    Hi. running OS 10.7.4 on my MacBook Pro. I want to password protect a zip file (FPTGH.zip) to send to both PC and Mac users. I created the zip file using the finder. That worked like a champ. The file is on my desktop. I opened Terminal and entered zip -e, my zip file name.zip, entered the password (correctly) twice, and I repeatedly get the following message.
    scm's MacBook-Pro:~ scm$ zip -e FPTGH.zip
    Enter password:
    Verify password:
    zip error: Nothing to do! (FPTGH.zip)
    scms-MacBook-Pro:~ scm$
    Then I tried creating the zip from the original file, and I get the same message:
    scm's-MacBook-Pro:~ scm$ zip -e FPTGH.txt
    Enter password:
    Verify password:
    zip error: Nothing to do! (FPTGH.txt)
    scms-MacBook-Pro:~ scmorgan$
    WHAT am I doing wrong?
    Stumped in Costa Rica. SC Morgan

    Linc, I do have a file named FPTGH.txt on my desktop. I highlight it (although that shouldn't make an difference) and run the script in Terminal and continue to get the "zip error" mesage.
    I've tried FPTGH FPTGH; FPTGH FPTGH.txt; and FPTGH.txt FPTGH.txt all with the error responses. When I try matching file names I get this:
    sarah-morgans-MacBook-Pro:~ scmorgan$ zip -e FPTGH.txt FPTGH.txt
    Enter password:
    Verify password:
    zip error: Invalid command arguments (password verification failed)
    sarah-morgans-MacBook-Pro:~ scmorgan$
    When I try use mismatched file names I get this:
    sarah-morgans-MacBook-Pro:~ scmorgan$ zip -e FPTGH FPTGH.txt
    Enter password:
    Verify password:
              zip warning: name not matched: FPTGH.txt
    zip error: Nothing to do! (FPTGH.zip)
    sarah-morgans-MacBook-Pro:~ scmorgan$

Maybe you are looking for

  • Risks associated with digital signatures

    We are looking to develop a process to use digital signatures on PDF documents, send them via email to a line manager, who adds his digital signature as a "stamp of approval" who then emails them to a specific department for processing. Are there any

  • How do I delete large groups of photos?

    I have too many photos and wish to get rid of some.

  • Why is the iphone6 so flimsy?

    Why is the iphone6 so flimsy?  I had the 4S for 3 yrs, never an issue.  Dropped the 6 less than 12 inches on a linoleum floor (hard plastic) and it BENT and shattered, rendering unusable.  Is this a manufacturer defect?  Anyone else having issues wit

  • Change tracking in Web Tab

    Hi All, How to get the change tracking in Web Tab of Data Manager. Regards, Nikhil

  • I have a phone I am using a 4 g

    I have a phone I  4 G, but at the last update I have neither safari or itunes! I can not make any further updates, because the back up works. please help ....