Results 1 to 2 of 2

Thread: FileSystemObject

  1. #1
    Vasudha K.S. Somayaji Guest

    Default FileSystemObject

    i have just the file name and the directory where it&#039s stored can i get the last modified date of that file or the extension of that file

  2. #2 Guest

    Default RE: FileSystemObject

    Yes.<BR><BR>If you don&#039t already have it go to and download the VBScript and JScript documentation they offer. It has all the methods and properties for the File System Object.<BR><BR>the following example is straight from Microsoft:<BR>Function ShowFileInfo(filespec)<BR> Dim fso, f<BR> Set fso = CreateObject("Scripting.FileSystemObject")<BR> Set f = fso.GetFile(filespec)<BR> ShowFileInfo = "Created: " & f.DateCreated<BR>End Function<BR><BR>to get the file "Extension" do the following:<BR><BR>strExtension = Right(f.Name,3)<BR><BR>Good Luck.

Posting Permissions

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