dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Need to find the modified data and time stamp of a file

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Need to find the modified data and time stamp of a file

    Hello All ,

    I need to find out the modified data and time stamp of a file present on a particular folder.

    say for instance the file is present some where on the folder path "C:\myWork\ServerWorkspace\test.txt

    I need to retrive the last modification date and time stamp.

    I surfed thru the net all that I found was "document.lastModified" is what used and was not really helping me out.

    Is this really doable using Javascript ? by accessing the file path and getting the file modifiaction timae and date.

    can any one please assist on this.

    Thanks in advance

    -Navin

  2. #2
    Join Date
    Oct 2012
    Posts
    42
    I don't think you can do this only with javascript due to the security limitations placed the javascript engines in most browsers.

    You could use javascript to make an ajax call to a server-side script (php/.Net/java) which reads the relevant file attributes and then returns the information as a JSON or xml response.

  3. #3
    Join Date
    Dec 2012
    Posts
    2
    Thanks mate ! for helping me understand the potential flaw of carrying out this approach , I wll try to get this implemented with Java

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles