Bash: unzip file and move into directory if directory created

I'm writing a script that decompresses zipped/rared files.
The zips typically have content in a one directory or not contained in a directory.
Is there a way to see if the unzip process created a directory and move into it or if one wasn't created to operate on the files extracted in the PWD?
So far the rar files have only had data that gets extracted to PWD, but if I see some with files in directories I'd like for a solution that might work in that case as well.

Would zipinfo' help?  It lists zip archive files in a format similar to 'ls -l'.
I only tried this on two zipfiles, and I'm concerned about how foolproof this may or may not be.
Zipinfo lists the files in the opposite order that they were placed into the zipfile, I think.  If the first file placed into the zip was the parent directory, and so contains all the other files, the listing will be something like that shown below, with the container directory always on the next-to-last line of zipinfo's output:
-rw-a-- 2.0 fat 1057 tx defX 09-Nov-12 17:56 examples/README.txt
drwx--- 2.0 fat 0 bx stor 09-Nov-12 16:48 examples/
42 files, 508682 bytes uncompressed, 133398 bytes compressed: 73.8%
So one would have to test if the next-to-last line of zipinfo's output begins with 'd' (directory) or '-' (regular file).
Off the top of my head, with not-so great command-line skills, I came up with:
zipinfo example.zip | tail -n 2 | grep '^d'

Similar Messages

  • Problem in reading no. of files and writing into a single file

    Hi,
    Iam with Problem in reading no. of files and writing into a single file....
    Iam reading no. of files stored in local directory.......
    Iam able to read and print the data in files successfully....but while writing..only first file is being written...and the next files are not written in my output file...
    plz tell me my mistake....I hope Iam doing some mistake while writing into file...PLz help.....
    Basically my code structure is like this....
    import java.io.*;
    import java.util.regex.*;
    import java.util.*;
    import java.text.*;
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFCell;
    class Writing {
    public static void main(String args[]) throws Exception {
              FileOutputStream fileOut = new FileOutputStream("ServerResult.xls"); //my output file
              int counter = 1;
              File dir = new File("C:/Perform/ServerLogs");
              String[] children = dir.list();
              if( children == null)
                   System.out.println("The Directory mentioned does not exist");
              else {
                   for (int fileNo = 0; fileNo < children.length; fileNo++ ) {        //Files iteration starts
                        String filename = children[fileNo];
              File logFile = new File(filename);
    FileReader logFileReader = new FileReader(logFile);
    BufferedReader logReader = new BufferedReader(logFileReader);
    StringBuffer sBuf = new StringBuffer(5000);
              HSSFWorkbook wb = new HSSFWorkbook();          
              HSSFSheet sheet = wb.createSheet();
              HSSFRow rowTitle;
              HSSFRow rowReq;
              HSSFRow rowRes;
    String aLine = null;
    boolean skip = false;
    boolean readed = false;
    boolean initReq = false;
              boolean flag = false;
    long requestTime = 0;
    long responseTime = 0;
    long recdTime = 0;
    long sentTime = 0;
              long hasTime = 0;
              long presentTime = 0;
              int hasCalls = 0;
    Pattern startMessage = Pattern.compile("^<MESSAGE.*ID=\".*_"+args[0]+"\".*", Pattern.DOTALL);
    Pattern requestMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"RequestMsg.\".*ID=\".*_"+args[0]+"\".*<ActName>(.*)</ActName>.*", Pattern.DOTALL);
    Pattern requestMessage1 = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"RequestMsg.\".*ID=\".*_"+args[0]+"\".*<Svc id=\"(.*)\">.*", Pattern.DOTALL);
    Pattern responseMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"ResponseMsg\".*ID=\".*_"+args[0]+"\".*", Pattern.DOTALL);
    Pattern initMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"HostConnInit\".*ID=\".*_"+args[0]+"\".*", Pattern.DOTALL);
    Pattern initResMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"ResponseMsg\".*ID=\"null\".*", Pattern.DOTALL);
    Pattern initResIDMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"ResponseMsg\".*ID=\"null\".*<IATA>"+args[0]+"</IATA>.*", Pattern.DOTALL);
              Pattern sentMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"DCMsgSentInfo\".*ID=\".*_"+args[0]+"\".*", Pattern.DOTALL);
              Pattern rcvdMessage = Pattern.compile("^<MESSAGE.*TS=\"(.*)\" CATEGORY=\"DCMsgRcvdInfo\".*ID=\".*_"+args[0]+"\".*", Pattern.DOTALL);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    DecimalFormat dcf = new DecimalFormat("########.##");
    String actName = "";
              if (fileNo ==0)
              rowTitle = sheet.createRow((short)0);
              rowTitle.createCell((short)0).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)0).setCellValue("Req/Res");
              rowTitle.createCell((short)1).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)1).setCellValue("Action");
              rowTitle.createCell((short)2).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)2).setCellValue("Server Time(in ms)");
              rowTitle.createCell((short)3).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)3).setCellValue("Request Vs Response Time in Server(in ms)");
              rowTitle.createCell((short)4).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)4).setCellValue("Time Taken By HAS/HOST(in ms)");
              rowTitle.createCell((short)5).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)5).setCellValue("No. of HAS calls");
              rowTitle.createCell((short)6).setCellType(HSSFCell.CELL_TYPE_STRING);
              rowTitle.createCell((short)6).setCellValue("Data Size");
              //wb.write(fileOut);
    while((aLine=logReader.readLine()) != null) {
    if(aLine.startsWith("<MESSAGE TYPE=\"EVENT\"")) {
    Matcher m = startMessage.matcher(aLine);
    if(m.find()) {
    sBuf.setLength(0);
    sBuf.append(aLine);
    skip = false;
    initReq = false;
    m = initMessage.matcher(aLine);
    if(m.find()) {
    initReq = true;
    } else {
    if(initReq) {
    m = initResMessage.matcher(aLine);
    if(m.find()) {
    sBuf.setLength(0);
    sBuf.append(aLine);
    skip = false;
    } else if(aLine.startsWith("</MESSAGE>")) {
    if(!skip) {
    sBuf.append(aLine);
    readed = true;
    } else if(!skip){
    sBuf.append(aLine);
    if(!skip && readed) {
    String tempStr = sBuf.toString();
    if(tempStr.length() > 0) {
    boolean reqMatched = false;
    Matcher m = null;
    if(initReq) {
    m = initMessage.matcher(tempStr);
    actName = "Intialization";
    } else {
    m = requestMessage.matcher(tempStr);
    String time = "";
    if(m.find()) {
    reqMatched = true;
    for (int i=1; i<=m.groupCount(); i++) {
    String groupStr = m.group(i);
    if(i == 1) {
    time = groupStr;
    } else if(i == 2) {
    actName = groupStr;
    } else if(!initReq){
    m = requestMessage1.matcher(tempStr);
    if(m.find()) {
    reqMatched = true;
    for (int i=1; i<=m.groupCount(); i++) {
    String groupStr = m.group(i);
    if(i == 1) {
    time = groupStr;
    } else if(i == 2) {
    actName = groupStr;
    if(time.length() > 0 ) {
    try{
    requestTime = sdf.parse(time).getTime();
    }catch(Exception ex){}
    System.out.println("Request,"+actName+","+time+",,,,"+dcf.format(((double)time.length()/1024.0))+"K");
                                  //bw.write("Request,"+actName+","+time+",,,,"+dcf.format(((double)time.length()/1024.0))+"K");
                                  String reqDataSize = dcf.format(((double)time.length()/1024.0))+"K" ;
                                  rowReq = sheet.createRow((short)counter);
                                       rowReq.createCell((short)0).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)0).setCellValue("Request");
                                       rowReq.createCell((short)1).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)1).setCellValue(actName);
                                       rowReq.createCell((short)2).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)2).setCellValue(time);
                                       rowReq.createCell((short)3).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)3).setCellValue("");
                                       rowReq.createCell((short)4).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)4).setCellValue("");
                                       rowReq.createCell((short)5).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)5).setCellValue("");
                                       rowReq.createCell((short)6).setCellType(HSSFCell.CELL_TYPE_STRING);
                                       rowReq.createCell((short)6).setCellValue(reqDataSize);
                                       counter = counter +1;
                                       System.out.println("counter is "+counter);
                             Matcher l = sentMessage.matcher(tempStr);
                             Matcher k = rcvdMessage.matcher(tempStr);
                   if(l.find()) {
                                            for (int i=1; i<=l.groupCount(); i++) {
         String groupStr2 = l.group(i);
    try{
    sentTime = sdf.parse(groupStr2).getTime();
    }catch(Exception ex){}
                        if(k.find())
                                                 for(int j=1;j<=k.groupCount(); j++) {
                                                 String groupStr1 = k.group(j);
                                                 try{
    recdTime = sdf.parse(groupStr1).getTime();
    }catch(Exception ex){}
                                                 presentTime = (recdTime - sentTime);
                                                 hasTime = hasTime + presentTime;
                                                 hasCalls = hasCalls +1;
    if(!reqMatched) {
    if(initReq) {
    m=initResIDMessage.matcher(tempStr);
    } else {
    m=responseMessage.matcher(tempStr);
    if(m.find()) {
    for (int i=1; i<=m.groupCount(); i++) {
    String groupStr = m.group(i);
    try{
    responseTime = sdf.parse(groupStr).getTime();
    }catch(Exception ex){}
                                                 String resDataSize = dcf.format(((double)tempStr.length()/1024.0))+"K" ;
                                                 rowRes = sheet.createRow((short)(counter));
                                                 rowRes.createCell((short)0).setCellType(HSSFCell.CELL_TYPE_STRING);
                                                 rowRes.createCell((short)0).setCellValue("Response");
                                                 rowRes.createCell((short)1).setCellType(HSSFCell.CELL_TYPE_STRING);
                                                 rowRes.createCell((short)1).setCellValue(actName);
                                                 rowRes.createCell((short)2).setCellType(HSSFCell.CELL_TYPE_STRING);
                                                 rowRes.createCell((short)2).setCellValue(groupStr);
                                                 rowRes.createCell((short)3).setCellType(HSSFCell.CELL_TYPE_NUMERIC);
                                                 rowRes.createCell((short)3).setCellValue((responseTime - requestTime));
                                                 rowRes.createCell((short)4).setCellType(HSSFCell.CELL_TYPE_NUMERIC);
                                                 rowRes.createCell((short)4).setCellValue(hasTime);
                                                 rowRes.createCell((short)5).setCellType(HSSFCell.CELL_TYPE_NUMERIC);
                                                 rowRes.createCell((short)5).setCellValue(hasCalls);
                                                 rowRes.createCell((short)6).setCellType(HSSFCell.CELL_TYPE_STRING);
                                                 rowRes.createCell((short)6).setCellValue(resDataSize);
                                                 hasTime = 0;
                                                 hasCalls = 0;
                                                 counter = counter + 1 ;
    sBuf.setLength(0);
    readed = false;
              wb.write(fileOut);
              } // End of for (int fileNo = 0; fileNo < children.length; fileNo++ )
    }     //End of else
              fileOut.close();
    } //End of public static void main
    } // End of Class

    First of all, use [code]-tags to make your code readable, please.
    I didn't do a complete inspection of your code (because it's too much and unreadable as it is) and I don't know POI, but creating a new HSSFWorkbook for each input file sounds fishy to me ... try re-using the workbook and just creating a new sheet in each iteration.

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Don't want to Copy audio and movies into document:  Selecting

    Hello
    Here is my first question about Keynote.
    In the User Guide, we may read:
    Copy audio and movies into document:  Selecting this checkbox saves audio and
    video files with the document, so the files play if the document is opened on another
    computer.
    *_You might want to deselect this checkbox so that the file size is smaller, but_*
    *_media files won’t play on another computer unless you transfer them as well._*
    The named checkbox is unchecked in the Advanced options as well as in the Preferences pane but, when I drag a sound file, in fact a mp3 one encapsulated in a .mov file, I retrieve it it the document itself.
    I'm running the app on a French system if it may make sense.
    Am'I doing something wrongly ?
    Yvan KOENIG (VALLAURIS, France) mardi 18 janvier 2011 14:17:30

    I have no huge knowledge about Keynote.
    So, I would use brute force.
    Assuming that your document is built with the flatfile format introduced by iWork '09
    (1) rename the document wxyz.key as wxyz.key.zip
    (2) double click the renamed document
    it will expand as a wxyz.key document using the old package structure
    (3) ctrl + click the icon of the new wxyz.key document to reach the contextual menu offering the item allowing you to "Display Package Contents"
    (4) in this contents you will see the "kind of aliases" which I wrote about.
    They are named something like : azertyui.mov
    (5) open them with an hexadecimal editor like the free Hexedit.
    You may also drag & drop them on the TextEdit icon.
    In this late case you will get something like :
    I highlighted the meaningful info.
    Here it must be read as:
    Macintosh HD/Important/Téléchargements/jef gilson - oeil vision/jej gilson - oeil vision - 7 -chant inca.mp3
    This is the path to the true file.
    With this info, you may reach the true file.
    As far as I know, the embedded .mov file is a frozen 'kind of alias' so you are not allowed to move it.
    As long as it remains where it is, you may move the keynote document everywhere on your HD. You may also move it on an external HD.
    As long as the device is connected to your machine with the media file untouched thr doc will behave flawlessly.
    If you move it to an other machine, it will be orphan.
    So, to use it on an other machine, you must embed the media file in the document.
    Open this document with Keynote.
    Check the checkbox urging Keynote save media in the document
    Delete the icon of the media item existing in the document
    Drag & drop the true media file as a replacement of the deleted one
    then save the document.
    Oops I was forgetting to respond about 'dropped files'.
    To my knowledge, they are some insert picture files.
    Yvan KOENIG (VALLAURIS, France) vendredi 21 janvier 2011 22:44:11

  • Sony 50mm f1.4 ZA SSM Lens Profile in 8.4 RC  any way I can download file and load into Lightroom ?

    Sony 50mm f1.4 ZA SSM Lens Profile in 8.4 RC  any way I can download file and load into Lightroom ?

    Short answer. No.

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • Embed audio and movie into pdf

    Since acrobat pro 9 is not available for mac I don't understand why Apple can't embed audio and movie into pdf. This is a really needed feature. Oh and also creating spreads in pages09 is needed as well. I want to use pages to create ebooks with audio and movie data etc come on Apple get it sorted .. You have an amazing program here and could clout Adobe on the head if you implemented these features.
    Message was edited by: slannie

    Hi slannie! Welcome to the Pages'09 forum. We are not Apple employes but end users like you that share experinces and help each other. If you want to give Apple some feedback and as you are in the Pages forum you can use the link here
    http://www.apple.com/feedback/pages.html
    or
    Click in the Pages menu on Pages > Provide Pages Feedback
    How come you think acrobat Pro isn't availeble for Mac???
    Here is the system specifications for using Abrobat Pro 9 on a Mac (in Swedish)
    +Mac OS+
    +• PowerPC® G4- eller G5- eller Intel®-processor+
    +• Mac OS X v10.4.11 eller 10. 5+
    +• 256 MB RAM (512 MB rekommenderas)+
    +• 1,42 GB ledigt hårddiskutr ymme+
    +• Bildskärm: 1024 × 768 pixlar+
    +• DVD- ROM- enhet+

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • Pool data from text file and insert into database

    Can anyone tell me how to pool data from a text file and insert into database?
    let's say my text file is in this format
    123456 Peter 22
    234567 Nicholas 24
    345678 Jane 20
    Then I need to insert the all the value for this three column into a table which has the three column name ID, Name, Age
    Anyone knows? I need to do this urgently...Thank in advanced

    1. Use BufferedReader and read the file line by line.
    2. Loop thru the file and do the following steps with in this loop.
    3. Use StringTokenizer to seperate each line into three values (columns).
    4. Now create a insert statement with these values and add the statement to the batch (using addBatch() method of PreparedStatement or Statement).
    5. Finally (after exiting the loop), execute these batch of statements (using ps.executeBatch()).
    Sudha

  • How do I transfer my catalog, files and collections into Lightroom 4 onto another computer?

    How do I transfer my catalog, files and collections into Lightroom 4 onto another computer?

    You can copy your image file  from you PC to your Mac over your home network or via DVD/CD.  You can not install you PC CS5.1 version on you Mac. Its not compatible with MAC OS.  You would need a MAC version of CS5.1 and Mac version serial number to activate it.  Adobe no longer markets CS5 so you most likely will not be able to pay for a platform switch media install.

  • Have updated my mail but i cant import my old messages as i am told that I do not have enough room on my HD but when I deleted files and movies an hour ago and now it says i still don't have room.

    I have updated my mail but when I try to import my old messages back I am told That I do not have enough space I then deleted a number of files and movies and still got a warning message of not enough space

    Did you empty the trash (click on Finder) after deleting the files/movies?

  • Hi, I have downloaded some avi files and mov files. i am not getting audio while playing the movie. i tried to play with iTunes, QT, DivX player. but I am getting audio in mp4 files. can u help me to fix this

    Hi, I have downloaded some avi files and mov files. i am not getting audio while playing the movie. i tried to play with iTunes, QT, DivX player. but I am getting audio in mp4 files. can u help me to fix this

    First, back up all data and then uninstall "DivX" according to the developer's instructions.
    Then try this:
    VideoLAN - Download official VLC media player for Mac OS X

  • Rename files and move them into new folders with part of original file name

    I have tried using automator and other programs such as name Name Mangler with no luck.
    I am trying to have an AppleScript run when files are added to a folder, using a service through Automator.
    File names come in 9 different suffixes, all with the same prefix.
    Example:
    nonspecificprefixSUFFIX
    nonspecificprefixOTHERSUFFIX
    nonspecificprefixALSOSUFFIX
    I am trying to get the program to create a folder named after the prefix, then to remove the prefix from the files after moving them into this folder.
    There are 9 different suffixes that should remained unchanged.
    End goal would be to have child folders named nonspecificprefix, nonspecificprefix2 etc each with 9 files only containing the suffix portion of original name.
    If anyone has any tips to get me on the right path that would be much appreciated! I have thousands of files to rename and move so this would save me loads of time!

    Erwin,
    I was not able to systematically examine this issue, because it occurred on a production system and, of course, I uninstalled the Adobe iFilters as soon as I read that they may delete pdf files. Before the uninstallation I noticed the AR9 folders appearing on c:\ and moved them from time to time to another folder. Using the search function inside this folder, I found that all files were present in duplicate at least. I concluded, that after moving the AR9 folders they were recreated containing the same files. Consequently, these files cannot have been deleted. Searching for the origin of these files I found that they were part of pdf portfolios, therefore my conclusion that they are part of the indexing mechanism of the portfolios. What I have not done (and what I am not going to do since it is a production system) is to fill a folder with pdfs and track what is happening to the files.
    In case of my server, I think that the iFilters did not delete any files. Of course I cannot say what happens on other systems. I am definitely not going to reinstall the iFilters before knowing what they a really doing to the files.
    Not sure if this is of much help
    Michael

  • Trouble opening mpeg movie files and importing into iMovie 08

    Hi, I'd be most grateful if anyone could provide any solutions to the following problem...
    A friend has emailed me two .mpeg movie files which are parts 1&2 of a home movie which I want to edit in iMovie and burn to DVD. The footage was shot on a miniHDV camcorder (not sure which brand).
    Opening in QT 7.6 gives the following warning dialogue: "The movie could not be opened. The file is not a movie file."
    The files will however play fine in VLC Media Player, but not in mpeg Streamclip (the file appears to play but the viewer is blank with no audio/video). Trying to import into iMovie is unsuccessful. The iMovie browser won't let me choose the files or drag/drop.
    Any ideas. I read somewhere that iMovie 08 can't import mpeg-1 files. Do I need to convert the files, and if so how?
    Thanks in advance, and apologies - this is my first experience of video editing.

    I have QT Player but it hasn't "kicked in" when I try to import my videos.
    Something called PIXE VRF Browser is supposed to help in the conversion. The QT MPEG-2 thingy won't install until I buy QT Pro, according to what I get on the screen.
    Sounds like you have too many applications trying to do the same thing. Either use the Pixela Pixe VRF Browser or use the Mac applications (Mac OS Finder, Apple QT MPEG-2 Playback Component w/MPEG Streamclip) but not both to do the same job. The Apple Finder should be able to copy multiplexed VOB/MPEG-2 files from either your PC burned DVD or directly from your camcorder DVD to your MAC hard drive where MPEG Streamclip/QT MPEG-2 component can convert them for use in iMovie '08. Frankly, I don't understand your work work flow or why you want to import your files to a GOP editor in the first place if your goal is to do frame level editing in iMovie '08.
    As for Jon's suggestion, I am on dial-up and cannot download big files at 3-4 Kbps snail pace.
    What does this have to do with importing your camcorder files to your PC and re-burning them to DVD for use on your Mac? If I were to make a recommendation here, it would have been to use an external hard drive here rather than DVDs for transporting files between platforms and then only if you want the files available to both. If your goal is only to edit them in iMovie '08 or iMovie HD on your Mac, then why not cut out the "middleman" platform?
    I wish I could purchase these updates on DVDs but the genies couldn't even tell me if there's such a service.
    Totally confused here. Are you saying your DVR-D300 files were commercial produced or that you are dealing with torrent downloads of copy-written material? These are two separate issues with facets beyond the scope of this forum.
    As for "platform", I have iMovie08. iMac does not read the mini RAM disks when I connect the camera to a USB port.
    Are you saying the Finder doesn't read them or that iMovie '08 doesn't read them? Do you "finalize" your DVDs before trying to read them via USB as the manual states may be necessary as indicated on page 150 of your manual?
    How can I find out that iMovie09 will let me import and edit my Panasonic videos?
    You could try going to the Apple site and checking the the tapeless camcorder compatibility chart. The Panasonic DVR-D300 is specifically listed along with a hot link for additional information. However, this still won't help you you don't finalize the content.

Maybe you are looking for