Importing All the files from a folder at a time

Hi....
Can any body tell me how to import set of files from a folder into IDM.
It is becoming very difficult to import the files one after other....
Waiting for Reply....
Thanks in advance..........

We used an ant script to build an XML file that will contain the files. The script is configured to use the folder structure of our CVS repository.
We'd checkout our XML module and then run the build script and import the resulting init file.
Code to the script is below -- caveat emptor. You'll need to change the folder structure to suit your own environment.
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="MyInit">
    <target name="init">
        <property location="." name="src.dir"/>
        <property location="." name="dest.dir"/>       
        <property name="project.name" value="${ant.project.name}"/>
        <property location="${dest.dir}/MyInit.xml" name="MyInit.output"/>
        <property name="source.configuration" value="${dest.dir}/configuration"/>       
        <property name="source.emailTemplate" value="${dest.dir}/emailTemplate"/>
        <property name="source.forms" value="${dest.dir}/forms"/>
        <property name="source.reports" value="${dest.dir}/reports"/>               
        <property name="source.resource" value="${dest.dir}/resource"/>          
        <property name="source.rules" value="${dest.dir}/rules"/>
        <property name="source.workflow" value="${dest.dir}/workflow"/>
        <!-- get the source path -->
        <path id="configuration.path">
            <fileset dir="${source.configuration}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="cp" refid="configuration.path" />
         <path id="emailTemplate.path">
            <fileset dir="${source.emailTemplate}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="ep" refid="emailTemplate.path" />
         <path id="forms.path">
            <fileset dir="${source.forms}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="fp" refid="forms.path" />
        <path id="reports.path">
            <fileset dir="${source.reports}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="rptp" refid="reports.path" />                 
        <path id="resource.path">
            <fileset dir="${source.resource}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="rep" refid="resource.path" />        
        <path id="rules.path">
            <fileset dir="${source.rules}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="rp" refid="rules.path" />
        <path id="workflow.path">
            <fileset dir="${source.workflow}" >
               <include name="*.xml" />
            </fileset>
         </path>
         <property name="wp" refid="workflow.path" />
        <!-- get the path prefix -->
         <path id="source.path">
            <pathelement location="${src.dir}" />
         </path>
         <property name="sp" refid="source.path" />       
    </target>
    <target depends="init"  name="win_init">
        <!-- change the path of xml files to windows path -->
        <property name="importfile.path" value="${sp}"/>                            
    </target>              
    <target depends="init" name="make">
    <!-- using XML character entity references to escape
    <  <
    >  >
    '  &apos;      -->    
        <echo file="${MyInit.output}" append="false"><?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
<Waveset>
${cp}
${ep}
${fp}
${rptp}
${rp}
${wp}
</Waveset>
        </echo>
     <!-- replace path prefix with ImportCommand -->
     <replace file="${MyInit.output}"
              token = "${sp}"
              value = "<ImportCommand name='include' file='${importfile.path}" />
     <!-- deal with file and path separators in an os independent way -->
     <replace file="${MyInit.output}"
              token = "${file.separator}"
              value = "/" />        
    <replace file="${MyInit.output}"
              token = "${path.separator}"
              value = "${line.separator}" />
    <replace file="${MyInit.output}"
              token = ".xml"
              value = ".xml'/>" />
    </target>
    <target depends="init,win_init,clean,make" description="Build everything." name="all"/>
    <target depends="init" description="Clean all build products." name="clean">
        <delete file="${MyInit.output}"/>
    </target>
</project>

Similar Messages

  • I am not being able to play sound when I import a .MTS file from my folder

    I am not being able to play sound when I import a .MTS file from my folder on my sequence bar of my Premiere Pro CS6. Even if I use my Media Browser to import the file, the video plays fine, but the audio is disabled it seems. I don't know what to do since I have used .MTS files before without hassle on CS5.5. It is quite frustrating. What can I do?

    Hi debesh05,
    Please mention the Operating System that you are using and also make and model of the Camera that was used to capture those clips. Also, try to make another folder with the same name in the same location where the .MTS files are and move all the clips into the new folder and then try to import the files again using Media Browser in Premiere Pro CS6. If this doesn't work then make a copy of one file and rename it as .M2TS and then import that single file into Premiere Pro CS6. Please update if either of the solution works for you.
    Regards,
    Vinay

  • How to read the file from a folder.

    Hi All,
    How to read the file from a folder or directory from the non sap server / remote server.
    Regards
    Sathis

    open dataset filename for input in text mode
                         encoding default.
    filename is character type variable with the destination filename.
    Edited by: Jino Augustine on Apr 19, 2010 1:31 PM

  • HT4889 I have accidentally created another account when using Migration Assistant to a new MBA. How do I now 'migrate' all the files from both accounts into one to save myself having two accounts, both of which are me? Help?

    I have accidentally created another account when using Migration Assistant to a new MBA. I have read that I probably should not have skipped migration in the initial set up and the problem would have been avoided but, alas, here I am. Does anyone know how I can 'migrate' all the files from one of the accounts that has been created to the other, so then I can delete it and have a single user on the computer seeing as I am the only person using it? I have read starting again, if this is the way to go, where is the best place to start 'starting again'?

    Yes definitely should see it but its not coming up (I don't think) when I log out of 2nd user and into the main account. Opening finder in the 2nd account, I can obviously find the public folder because thats where I dropped all the files, but when in the main account, it can't be found. The only public folder that comes up is the folder for that account (main account) and it does not display files I'm looking for. Frustrating....
    EDIT: Have found it through a round-about way but all music and photo and movie etc files have a red stop sign disallowing them from being transferred. Can you guess what the next question will be?

  • The Date Accessed attribute is resetting to all the files in a folder

    Hi all,
    I have an issue that the "Date Accessed" attribute is often resetting to all the files in a folder if i open single file as this folder is from File server mapped as Drive to me. This is happening to all the users whoever connect to that fileserver
    and i see same issue from RDP as well. is there any option to check which is resetting the "Date Accessed" attribute to all the files. The Date Access attribute is simillar to Date accessed and Date modified. We need to fix this issue as it is related
    to security concern for us. The file server is windows 2008 R2 and the client machines are windows 7.
    Side note: I can see that there is no software, antivirus, offline sycn is causing this issue.
    Thank you,
    Sampath
    P.Sampath

    Hi,
    It seems that some specific process accessed the files and updated the attribute. You could configure auditing on the shared folder. Then you can go through the auditing log to check which process is doing the read operation on all these files. 
    Configuring Audit Policies
    http://technet.microsoft.com/en-us/library/dd277403.aspx
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Can someone upload all the files in iPod_Control folder?

    I need to get all the files from the iPod_control folder especially the one that is in the \iPodcontrolgamesRO. I've accidentally deleted those files that caused my games corrupted. Could someone just upload a .zip file of it. I really really need it. Hope that someone could help me. thanks !

    Originally Posted by spond
    Aspirer,
    you can just re-run the install, and specify only the PXE component -
    that way you will get the correct version
    Shaun Pond
    Our company use ghost for a long time.
    Now I am trying to persuade my IT boss to replace to the ZENworks one.
    So I can only test from my site.
    by adding ZEN pxe boot menu to existing pxe boot menu.
    Thanks anyway.

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • How do I merge two accounts into one account that contains all the files from both?

    When I was running my MacBook Pro under Snow Leopard, I had one account for business that was encripted and another account that was unencripted for personal.  Now, under Lion, the whole disc gets encripted so I don't really need two acounts.  How do I merge the accounts together into one account and retain all the files from both?
    Thanks,
    Dave

    Somethinkg like these?

  • I have all the files from my itunes on an old computer and want to move them to a new one

    I have all the files from my old computer but purchased a new one.
    How can I have all of my playlists and things preserverd and moved to the new PC?

    Type "move itunes library" into the google search bar

  • How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    How can I copy all the files from my iMac to an external drive so they remain as 'regular accessible files'? I want to clean my dive

    You can use a program like Carbon Copy Cloner.  It will clone your HD to the external.  The format is the same as your internal drive and you can boot from it using Option key at boot time.
    http://www.bombich.com/
    Regards,
    Captfred

  • File Adapter polls all the files from the directory when deployed again

    Hi,
    File Adapter polls all the files from the inbound directory irrespective of the timestamp when deployed again.
    For ex. when the BPEL process with file adapter is deployed, it starts polling the directory based on the timestamp as and when the directory is written with the files. I did not opt for deleting the files after read by the File Adapter.
    But, when BPEL process is modified and deployed again, this time, the file adapter picks up all the files in the inbound directory and doesn't consider the timestamp.
    My guess is that it should not pick all the files but based on timestamp only.
    I guess I can observe the same behavior if I bounce the Application Server also
    Do I have an option to achieve this?
    Thanks,
    Sasi Bhushan.

    try this:
    1- create a File object for the directory. (look at isDirectory() )
    2- create a File[] that represents the files in that directory. (.listFiles())
    3- if (file[x].isDirectory()) {recursive method call;}
    4- else {
    process file;
    If you want more help--do some work on it, and come back with specific questions relating to specific lines in your code and specific error messages you've been receiving.

  • Read all the files in a folder over and over again

    I want to develop an application that reads all the files in a folder, and once its done reading those files it reads all the files again.
    The purpose for this application is to read all the files in a folder that are continuously being stored in that folder, so that when a new file is created, that file is also read by the application. I then need to compare the date and time in which the file was created to the actual date and time of the system, so that way I can get the most recent file, and then  I will do other operations with this file.
    The thing is that I know how to read all the files in a directory, but I don't know how to cycle through those files again, in order to look for the most recent one, and I don't know how to make the comparison of the time stamps, because I need a precision of one second in the system time and the time the file was created.
    Can someone please help me?
    Thanks in advance!
    Solved!
    Go to Solution.

    I think that I just went the wrong direction.
    What I wanted to do in the first place, was to rename and overwrite every new file in a directory with the same name and file extension, so that every new file overwrites the old file. The thing is that the list folder only lists the files the first time and then keeps on telling me there are no files to be read even though there are new files.
    What I need now is a way to overwrite the old files with the same name, and keep searching for every new file that is going to be stored in the directory.
    I will leave the code that I have right now, so that you can tell me what do I need to modify in order to read every new file that's going to be created in that directory.
    Thanks in advance for your help!
    Attachments:
    Overwrite Files.vi ‏12 KB

  • I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore from backup it shows the previous OS X (Leopard) beside the date of the backup. Will it go back if I restore?

    I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore it from the backup it shows the previous OS X (Leopard) beside the date of the backup that I want to select. Will it go back to Leopard if I restore it from the backup?

    No, it won't revert to the prior OS X but you you may have third party apps installed that were compatible with Lion that may not be compatible with Mountain Lion.
    App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS
    After you restore from TM, check HD > Incompatible Software

  • How to sinc two computers and get all the files from both

    Not sure if this is the right forum for the issue, but... I have a iMac G5 and a MacBook, and I use one or the other for my work. That way I get part of my work on one, and other part on the other Mac. Now, I would like to sinc both of them, so that I have all the files from iMac on the MB, vice versa. I know that I could go slowly and use an external hard drive, copy files from one computer, save on another, but is there any handier and faster way to do it?
    Thanks
    Zo

    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh664.html
    http://docs.info.apple.com/article.html?artnum=106461

  • Reading all the files from Application Server in a specific folder

    Hi,
    I want to read all the files present in a folder on Application Server ( AL11 ). My problem is that I do not know the name of the file but I know the folder path where files are present.
    I need to go to this folder and pick up all the files present in this folder and then process these files in my program.
    Can any one help me in this!
    Regards,
    Lalit

    You can use a call to
    C_DIR_READ_START'
    and
    CALL 'C_DIR_READ_NEXT'
    Regards,
    John.

Maybe you are looking for

  • Windows 7 machine can't see smb share or any macs

    We have 7 render boxes set up on our network, all link to our smb share on our mac server accept one! We run SMBUp on the mac server due to well documented issues with smb and it works fine with 6 of the 7 machines... I have gone through all settings

  • ACS appliance1120 ACS 4.2.1.15 syslog message to syslog server

    Hi All ,          I am using ACS 1120 appliance running ACS version 4.2.1.15 , I am pointing out all syslog message to my external syslog server (passed authentication , failed authentication , database replication , administration aduit ,tacacs acco

  • How do I open raw files from my Canon 6D in Photoshop CS5.1?

    Just tried to open raw files from my Canon 6D in Photoshop CS5.1. An error message appeared: " Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please vi

  • Send ole2 object by email

    Hello experts, Does anyone knows if it is possible to send an ole2_object as attachment, in an email? Thanks and regards,

  • Moving apps from old citrus to new Phone

    I am upgrading from a Motorola Citrus to a Samsung Stratosphere, which is supposed to arrive tomorrow, I already use BackupAssistant to back up contacts, but what about my apps? I have many. How do I get then from old phone to new? <Post moved from M