last modified

Results 1 to 3 of 3

Thread: last modified

  1. #1
    Wim VDB Guest

    Default last modified

    I want to show the date a file was last modified. When I use eg. "c:\config.sys" as file, everything works. When I use a file in a certain directory, it doesn&#039;t work. What&#039;s wrong with the code below?!?<BR><BR>&#060;%<BR>set fs = CreateObject("Scripting.FileSystemObject")<BR>set file = fs.Getfile("c:\tmpCV.doc")<BR>Response.Write ("File last modified: " & file.DateLastModified)<BR>%&#062;

  2. #2
    Soma Guest

    Default RE: last modified

    Try this<BR><BR>If isEmpty(vComputerName) = True then<BR> Set objService = objLocator.ConnectServer<BR> Else<BR> Set objService = objLocator.ConnectServer(vComputerName)<BR> End If<BR> <BR> &#039;Get the Webm Service object<BR> Set objWEBMCol = objService.InstancesOf("Win32_Directory")<BR><BR>F or Each objWEBM in objWEBMCol <BR>File Last Modified: " & objWEBM.LastModified & _<BR>next<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: last modified

    Do you want to use FILE SYSTEM OBJECT only? Because,Using the COOKIES concept might be an alternative!

Posting Permissions

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