Load file on db with file system last modified date info

Hi,
i have e procedure for load a file on my DB table.
How to write on my table the last modified date read for file system?
Thanks in advance
Marc

Try this example to use dbms_pipe for executing the OS commands to get the last modified date of a file.
calling shell script from sql procedure

Similar Messages

  • How to copy files and last modified date

    Does anyone out there know who to copy files files from one directory to another and retain the date time stamp of the source files?
    I've been able to write some code that copies files from one directory to another but I always end up with a Date Last Modified that is based on the current date. I want to retain the date time stamp from the original file that I copied. Is this possible in Java?
    Mike

    Call file.setLastModified() after you close it.

  • Automatically (programming) Extracting last modified date

    Hi
    I have the url addresses of sesveral documents stored in SharePoint.  Those addresses are stored in a column within Excel.  There is one address per line (row).
    I would like to extract for each file its last modified date.  Ideally in an automatiic mode.
    All files are not in the same "folder".
    How could I achieve that?
    Many thanks in advance

    Hi,
    you can write a query to get all the files from the doc library and use SPFile.Properties to get the last modified date
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.properties.aspx
    your code will be like the below (Taken from above link)
    SPSite oSiteCollection = SPContext.Current.Site;
    using(SPWeb oWebsite = oSiteCollection.AllWebs["Site_Name"])
    SPFolder oFolder = oWebsite.Folders["Shared Documents"];
    SPFileCollection collFiles = folder.Files;
    foreach (SPFile oFile in collFiles)
    System.Collections.Hashtable collHashes = file.Properties;
    System.Collections.ICollection collKeys = hash.Keys;
    foreach (object oKey in collKeys)
    Response.Write(SPEncode.HtmlEncode(oKey.ToString())
    + " :: " +
    SPEncode.HtmlEncode(hash[oKey.ToString()].ToString())
    + "<BR>");
    another option would be to use SPFile.TimeLastModified
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.timelastmodified.aspx
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile_properties.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Getting the list of  files in a directory by their last modified date

    Dear friends,
    I want to get the list of files in a directory sorted by their last modified date.
    By default the file.list() or listFiles() return files sorted by their name in ascending order.
    Please give me your suggestions.
    Thanks in advance,
    James.

    Thanks friend,
    I myself got the answer
    here is my code:
    public File[] getSortedFileList(File dir){
    File[] originalList = dir.listFiles();
    int numberOfFiles = originalList.length;
    File[] sortedList = new File[numberOfFiles];
    long[] lastModified = new long[numberOfFiles];
    for(int i = 0; i < numberOfFiles; i++){
    lastModified[i] = originalList.lastModified();
    Arrays.sort(lastModified);
    for(int i = 0; i < numberOfFiles; i++){
    for(int k = 0; k < numberOfFiles; k++){
    if(originalList[k].lastModified() == lastModified[i])
    sortedList[i] = originalList[k];
    System.out.println("The sorted file list is:" + sortedList[i]);
    return sortedList;

  • Why will finder not order files by last modified?

    Finder has an option to arrange files by last modified, which I have enabled: http://i.imgur.com/rOfwz1O.png
    This doesn't do what is says though, it groups files last modified with a particular time frame (today, yesterday, last week, etc.) and shows them alphabetically within that group.
    To illustrate this problem create 3 files, a, b, c
    -rw-r--r-- 1 admin staff 0 11 Oct 13:04 a
    -rw-r--r-- 1 admin staff 0 11 Oct 13:03 b
    -rw-r--r-- 1 admin staff 0 11 Oct 13:04 c
    As you can see 'b' was created a minute before 'a' and 'c', yet in finder with the arrange by last modified option enabled they still appear in alphabetical order: http://i.imgur.com/4cVRTdD.png
    How do I get true chronological ordering of files in OSX?
    Thanks for any help

    By what you describe, it is arranging files by last modified. But, it appears you want to Sort by last modified.
    Set the Arrangement to None, then option click the button (or menu item). It will switch to Sorting options.
    You can set an Arrangement and also sort within the groups of the arrangement.

  • Know an extension that searches for the file "last modified" date?

    I am working on a site with 80,000 pages and need to find an
    extension that will search all files within the site and populate
    the date each file was last modified. Know of an extension that
    will assist in this situation? Any ideas will help, thanks in
    advance!

    Ahh, so now your requirements are changing. You do not want a
    simple
    text file output after all, but instead a sortable list. So
    perhaps
    output as a csv that could be sorted within a spreadsheet.
    Altho 80000
    rows?
    It is a bit hard to believe that an organization with an
    80000 page
    website does not have inhouse gurus who could do this in a
    heart beat.
    E. Michael Brandt
    www.divaHTML.com
    divaGPS | divaFAQ
    www.valleywebdesigns.com
    JustSo PictureWindow
    mercuryfenix wrote:
    > I just finished the first scan and was not impressed.
    PageList creates an ugly
    > and nearly useless list of file name, title, path from
    page root, a link to the
    > file, last modified date and time, and some meta
    garbage. To top it all off,
    > you cannot sort it by any of these categories because it
    puts all the data into
    > a lousy html table- useless.
    > I could probably get buy with this, but it would be
    horrible....80,000 pages
    > to scan! O yeah, i forgot to mention it has a very low
    limit to how many files
    > it can scan in one scan!
    >
    > I still am in need of a better extension. Please keep
    helping.
    >

  • How to get last modified date and time of a file which is in apache server.

    Hi ,
    I need to get last modified date and time of a file in remote machine.
    This file is in remote machine which has apache server installed.
    I am trying to get this information by connecting to apache server from client by giving absolute URI of the file to file object.
    URI is got from apache server URL by using toURI method.
    when I use lastModified method , its throwing exception , because scheme of URI is not file.
    I can't give scheme as file because ftp server is not installed on that server
    Is there any other way to get this information .

    No, unless you can use an FTP client.

  • Storing the last modified date for files in a HashMap

    This method gets a list of all the .java files in the source subdirectory, gets the last modified date for them and stores the file name and last modified date in a HashMap.
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              ArrayList javaFiles = new ArrayList();
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.size(); i++)
                   currentFile=(File)javaFiles.get(i);
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;
    }The problems I am getting are:
    >
    The method listFiles(FilenameFilter) is undefined for the type myClass
    and
    >
    The method put(Object, Object) in the type HashMap is not applicable for the arguments (File, long)
    can anyone help? What's the best way to go aobut this?

    Thanks for the replies abenstex I modified it so that javaFiles is now a File[] and made the change you suggested but I still have the second problem, here's the code so far:
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              File[] javaFiles = {};
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=sourceDir.listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.length; i++)
                   currentFile=(File)javaFiles;
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;

  • Files last modified date using.

    Is there a way to get the last modifed date of a file residing on a remote machine ?
    I tried the URL class. But could get to the file's contents and not the last modifed date of the file.
    Thank you..

    It depends on how you access the file.
    if the files are in a shared folder you can create a file object for it and get the last modified date.
    If it in a HTTP/FTP server then you should be able to ge the last updated date as a header.

  • Used Migration Assistant to successfully transfer PC files to Mini. However file creation or modified date does not transfer. Date of creation is listed as day of transfer.  I would gratefully appreciate any help in solving this,

    Used Migration Assistant to successfully transfer PC files to Mini. However file creation or modified date does not transfer. Date of creation is listed as day of transfer.  I would gratefully appreciate any help in solving this?

    I have the same problem; used Migration Assistant to transfer all my pix from PC to MacbookPro, however dates of pix were not transferred. Date created as the date of transfer. Cannot sort my pix according to date.
    Anybody has an answer?

  • Importing Notes into SOD - How can I set the Last Modified Date?

    We are still in the process of getting all of our users over to Siebel. We launched in waves and therefore have some users who were still utilizing the legacy systems while some were working away in Siebel. What I'm trying to do now is to take the reps notes from the legacy system and bring them back over into Siebel. I've got the file created with the account external id, subject, note(description) and the date the note was created in the legacy system. When I try to import the date can not be set and is defaulting to the date the acutal note was created in Siebel.
    This is a problem as I have 3 years of account history that must get loaded and if I import it all now it will push the current notes in the system to the very bottom of the list which will upset the reps who started uisng Siebel in the first wave.
    My goal is simply to order them from newest on top to oldest but I can't seem to find a way to do that using the import tool as Last Modified Date isn't an option for me to import.
    Is there a way to do it? If not does anyone know of a work around to achieve the same goal?
    Any help is much appreciated.
    - john

    Would that show up in the Notes section of the account detail if I do that? I've never tried that one before.
    After the R16 releiase the reps use the "hover" functionality to see their notes data in the top right of the application (or in the notes section of the account details).
    Edited by: Xeroid05 on Nov 25, 2009 8:09 AM

  • All previous purchases located on iCloud show same last modified date? Why?

    Greetings,
    I logged into my iTunes account for the first time in a log time today and noticed that any purchases located on icloud show a last modified date of Jan 06 2015 and I was curious why this would be. I'm fairly certain I have not accessed the files this year as I just setup iTunes with an empty library this week. Would all the files having the same modification date be due to a change in the file on the icloud servers? I'm not an iTunes match subscriber so I assume I could not have made changes to the files on that date and have them sync to icloud. Am I correct in that assumption?
    Any information would be appreciated. Below are my system specs, if it helps.
    Os: Windows7 x64
    iTunes version: 12.1.1.4

    This is by design.
    If you import an updated MP that is modifying the Incident class all Incident objects are updated to reflect the modifications of the updated MP.
    For instance: If you remove two obsolet enum values and import the updated MP in SCSM, in all Incident objects the obsolte enum property values will be removed = Updated Incident object = Last Modified Date will change.
    Hope this helps.
    Andreas Baumgarten | H&D International Group

  • Force Crawler in Maint Mode to Ignore Last Modified Data and Re-Index All

    We are running SES 10.1.8.4 with the Siebel 7.8 data source patches 8533402 and 8624308 to index documents (PDF, XLS, DOC, PPT) via RMI and Decompression Tool in Siebel. This data source is virtually identical to the database data source.
    The crawler will not "fail" if the actual indexing of the attachment file itself fails. For example, if RMI is down on the Siebel server and the crawler runs, SES will index the document metadata returned in the SQL but not the document. If the client then starts the RMI utility and re-runs the crawler, the document that was not indexed will not be re-indexed because the data source's last crawl time is used against the data sources last modified date attribute.
    Here is the pseudo SQL for the initial crawler query in maintenance mode....
    SELECT .... FROM MY_VIEW WHERE LASTMODIFIEDATE > TIME OF LAST DATA SOURCE CRAWL
    We have found a way to update the data source's last crawl time (DS_LAST_CRAWL) in the EQ$_DATA_SOURCE table. For now, we simply are using SYSDATE - 1.
    This will allow the missed document to be returned in the initial query.
    However, it's the crawler's document-level last modified date check within the crawler that is preventing the re-index. Since the document's last modified date is the same as what SES has, SES skips over it thinking it has not changed. True, it has not changed but it was missed during the last re-crawl and we want it to be indexed again.
    The client does NOT want to perform a full re-index because of the anticipated volume of attachments.
    Is there any way to tell the crawler to ignore the document-level last modified date and re-index everything returned from the initial query? Perhaps one of the other columns in the EQ$_DATA_SOURCE (DS_STATUS, DS_CRAWLING_MODE) holds the key?
    Thanks!

    I think it might be possible to set ENQUEUE_STATUS = 'Y' in the table EQ_TEST.EQ$URL. You may need to call eq_adm.use_instance(1) before doing so.
    However I'm not sure of the full implications of doing this - DON'T DO IT ON A PRODUCTION SYSTEM without carefully testing on a development system.

  • Finder doesn't show correct "last modified" dates

    For the longest time, the Tiger Finder has not always shown the correct "last modified" dates for files. Is there any fix or workaround for this?
    Frequently, if I'm working in a folder with a bunch of files in it, and working in each individual file, and viewing the folder in list view, the modified date for each file will not update as I work on the file. Even if I close and reopen the folder, it won't update. Sometimes when I click on an individual file, the date will update. Other times not. If I use "Get Info" to look at the file, then I see its true last modified date.
    I believe this used to be a problem in prior OS's too, and someone recommended a little contextual menu plug-in called "Nudge" to me. I went looking for that, found it, and installed it, but it doesn't do what I want. Now if I "nudge" a file, the Finder instantly marks it as modified right that second. That's not what I want. I need to know the last time the file was TRULY last modified, and I need it to show up immediately.
    I work with a large quantity of files and part of the management scheme is figuring out, at a glance, when each file was last modified, so I can keep track of their development.

    Hi folks,
    This issue has been driving me crazy, and I've been searching everywhere for a solution... today I am happy to report that I found one!
    Limit Point Software has just released a great utility for dealing with this issue where folders have their "Date Modified" altered after you just opened the folder.
    It is called "SyncFF" and you can download at:
    http://www.limit-point.com/Utilities.html
    Here is the product description:
    SyncFF is a drop utility for setting the modification and creation date of folders to the latest modification date of their contained files. This way the modification date of the folder matches the modification date of the "oldest" file it contains. The process is recursive, which implies all subfolders are processed too. Universal Binary, Mac OS X 10.4 and above.
    It works wonderfully, and it is so nice to have the proper modification dates on my folders and projects again.
    I should also say that the developer is very helpful and responsive to feedback.
    Zed

  • Search results not displaying correct last modified date

    Hello
    I have a bit of a strange issue.  I have a SharePoint site that was upgraded from SP2010 to SP2013.  A document has been created and uploaded into SharePoint on 1 August 2014 and the file has since been edited.  In the search results the last
    modified date is appearing as '8 January'.  Note that this document was not originally created from a blank one but was instead a Word document that was received by the user and then edited and then uploaded into SharePoint.
    I have checked my locale settings and everything is set to New Zealand.
    I have rerun a full crawl on my search database and this hasn't helped.
    Also, I have multiple sharepoint web applications on my server using the same search service application.  is it best to separate these out?

    Hi Martin,
    As I understand, the issue you encountered is the LastModifiedTime displayed incorrect in search result.
    If you go to CA > Search service application > Search schema, in Managed Properties, type LastModifiedTime, then you will get LastModifiedTime property. Click it and you will find the property is mapped to five crawled properties.
    I’d recommend you create a new managed property and only map it to ows_modified property. Then test the issue again.
    http://spvee.wordpress.com/2013/10/09/content-search-web-part-cswp-sort-by-modified-datetime/
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Cache Error - IP(BPM)

    Hi,     My SXI_CACHE return code returns the value 99.Could any one pls let me know how to reslove this cache entry so that my BPM scenario work.The pay load which i got against the cache enrty is as below :    <?xml version="1.0" encoding="UTF-8" ?>

  • Bapi to change payment method for vendor invoices using FB02 - VERSION 4.6C

    Hi all, I have a requirment to change payment method from 'A' to 'N' in vendor invoice using tcode FB02 .My system version is 4.6c. I am looking for a BAPI which will serve the purpose. I tried but could not find anyone. Please help me to find the sa

  • Can't open a specific wesite with AES encryption on

    WRT54GX2 router  set up with WPA and AES encryption, will not open a website that I know is working (it's my ISP, webmail site).  When I change to TKIP the site opens normally, but my wireless printer then drops off the network.  Any one have a fix?

  • Dual monitors issue

    Hello! I am trying to connect my mid-2007 iMac as a second display for my new Mac Mini. I purchased a Mini DVI to HDMI adaptor and plugged them both in. When I go to system preferences to sync them, it doesn't detect the iMac as a second display. I f

  • WDS help needed asap

    hi all I have recently set up wds on my lan, I have added the server groups as per instructions, my question is what is this client and infrastructure authentication for? as Im already using wep for my encryption. can anyoone help