Looking for a certain component/script

Results 1 to 2 of 2

Thread: Looking for a certain component/script

  1. #1
    Dave Kroc Guest

    Default Looking for a certain component/script

    I am looking for a compononet/script that gets a file&#039s last modified date/time. the script doesn&#039t have to be ASP, VBscript or C Script is also fine.<BR><BR>Please e-mail me if you can help me out!<BR>krocd@eodpoe2.navsea.navy.mil<BR><BR>Thank s<BR><BR>Dave <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Looking for a certain component/script

    You don&#039t need a component for this. It is easily done with ASP&#039s FileSystemObject.This example is from Microsoft http://msdn.microsoft.com/library/devprods/vs6/vb/html/vaprodatelastmodified.htm<BR>Sub ShowFileAccessInfo(filespec)<BR> Dim fs, f, s<BR> Set fs = CreateObject("Scripting.FileSystemObject")<BR> Set f = fs.GetFile(filespec) s = UCase(filespec) & vbCrLf<BR> s = s & "Created: " & f.DateCreated & vbCrLf<BR> s = s & "Last Accessed: " & f.DateLastAccessed & vbCrLf<BR> s = s & "Last Modified: " & f.DateLastModified <BR> MsgBox s, 0, "File Access Info"<BR>End Sub

Posting Permissions

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