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.

Similar Messages

  • 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.

  • 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

  • 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;

  • Can you call a built-in labview VI using teststand directly? For "File last modified"...

    I am trying to use Teststand to retrieve the "last modified" timestamp property for the sequence file that is running. The purpose is to determine whether a modification has been made since the last time a sequence with the same file name was run. The "saved count" property is not a viable option since mulitple people may be working on the same sequence, and in theory two people could have started with the same sequence file, made a change, and then saved (making the saved count property the same even though they are now different sequences).
    So, unless someone knows of an easy way to do get this info (file last modified information) within Teststand, here's my question:
    LabVIEW has a built-in VI that provides this information (Programming Pallete->File IO->Advanced File Functions->File/Directory Info). This gives a "last mod" output which is exactly what I need. However, this is in Labview, not teststand where I prefer to call it and retrieve the information. I could easily just place this built-in VI into a new blank VI, and then call that with TestStand, but that seems very redundant. The built-in version is exactly what I need.
    Is there a way to call this VI directly from TestStand without having to put it into a blank VI and save it as a seperate file? I can't seem to locate it within any of the labview directories or libraries, but maybe I'm not searching for the right name. Is there an easy way to find a VI on the harddrive that is on one of the buit-in labview palletes ?
    This seems like such a simple thing but it's giving me a lot of grief!
    Thanks!

    That is one of the built-in functions and not a stand-alone VI and the best way to call it is to create a VI with it on the block diagram.

  • 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;

  • 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

  • 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

  • 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.

  • Spotlight question: Difference between "Modified" & "Last Modified Date" ??

    In a Spotlight window, you can add many types of search criteria. Among them are two pairs of criteria that sound nearly identical. Can someone explain exactly what the differences are?
    1st pair: "Modified" & "Last modified date"
    +They're described this way:+
    Modified: "Date the file content was last changed"
    Last modified date: "Date when the content of this item was modified"
    2nd pair: "Created" & "Created date"
    +They're described this way:+
    Created: "Date the file was created"
    Created date: "Date when the content of this item was created"
    I found nothing via Google, and David Pogue's "Missing Manual" doesn't mention these either. Very curious what the distinctions are here.
    Thanks!

    Modified: "Date the file content was last changed"
    I would hazard a guess at the difference, "Date the file content was
    changed" would be the date the content was changed - obviously.
    Last modified date: "Date when the content of this item was modified"
    I would read this to mean the date any other details of the file were
    modified e.g. a rename would change this item but not the content, use
    of the touch command to change a date, moving the file from one directory
    to another, changing permissions i.e. anything that changes any aspect of
    the file except the content.
    As I said, just a guess.
    Dave

  • 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

  • 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

  • SharePoint 2013 File Last Modified Property

    Hi,
    Is there a way to promote "Last Modified Date" of an office document into a SharePoint Library Column?
    techie

    Techie,
    Default upload form won't  do it for us, so either you have to make your own custom upload interface which will read from file property and update accordingly, or you have yo use migration tool. Usually they does fairly good job to keep document meta
    data intact even after upload.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How can you find the Last Modified Date of a particular table

    Hi,
    I want to show to the LAST MODIFIED date of a particular table to the user before refreshing the table with new data. Experts please suggest me the way using JDBC-SQL connection.

    There is no generic SQL way for this. It depends completely on the features your DBMS offers. With Oracle you'd need to create column which gets updated in a trigger. I believe MS SQL Server offers a special data type for this, which is updated automatically. I don't know about others.

Maybe you are looking for

  • Unknown user type: oracle.jbo.domain.Date exception from time to time. How to solve?

    Hi, This is the first time I am using Coherence to cache some lists in my ADF Application. This is my objects configuration file: <?xml version="1.0"?> <!DOCTYPE pof-config SYSTEM "pof-config.dtd"> <pof-config>     <user-type-list>         <!-- coher

  • Improving retrieval performance of essbase server in unix environment

    HI, Our production environment is unix system. can any one suggest settings which impact the retrieval performance and how to do these settings in unix environment.

  • Drag and Drop Apps to and from Dock, doesn't work for one account?

    Hi there, I have 2 accounts on my Macbook, one of them is my main account which is admin and nothing is wrong with it. The second account though is also admin but I cannot drag and drop applications to and from the dock. I can open the program, hold

  • US iPhone car charger in UK

    I'm traveling to Scotland and Ireland next month and was wondering if iPhone car chargers used in the US will work with the UK and Ireland cars we will rent?  I vaguely recall owning a British Triumph Spitfire in my youth that was positive ground ins

  • Selection field on Infosource

    Hi, I have this field in a Z infosource, that I need to turn it into a Selection Field, so I can use it as a filter in the Infopackage. How do I do that? I enter using SBIW, but it doesn't let me check the selection check button. any help?¿?¿? Mauric