home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,190 of 10,840   
   James L Hill to Peter   
   Re: File Structure   
   04 Feb 05 03:52:44   
   
   From: james.hill83@verizon.net   
      
   Use the FileSystemObject to gain access to files and their properties.   
      
   Dim objFSO As New FileSystemObject   
   Dim objFolder As Folder   
   Dim objFile As File   
   Set objFolder = objFSO.GetFolder(sFilePath)   
   For Each objFile In objFolder.Files   
           sFileName = objFile.Name   
           dCreateDate = objFile.DateCreated   
           dModifiedDate = objFile.ModifiedDate   
   Next   
      
   NOTE: The file dates are read-only properties.   
      
      
   "Peter"  wrote in message   
   news:w47Md.206$89.159@fe3.news.blueyonder.co.uk...   
   > Hi   
   > I'm looking for a way to extract a file name and file create date and then   
   > replace them after modifying them.   
   > I'd be grateful for any help.   
   >   
   >   
   > Peter   
   > To err is human but it takes a computer to really mess things up!   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca