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,212 of 10,840   
   Peter to All   
   Re: File Structure   
   12 Feb 05 12:08:25   
   
   From: gammaNO@SPAMblueyonder.co.uk   
      
   Thanks   
      
   Peter   
      
   "Spanner"  wrote in message   
   news:hziPd.157824$K7.125840@news-server.bigpond.net.au...   
   >   
   > Set objFSO = CreateObject("Scripting.FileSystemObject")   
   > strFolder = "C:\Temp"   
   >   
   > Set objFolder = objFSO.GetFolder(strFolder)   
   > Set objFiles = objFolder.Files   
   >   
   > For Each objFile in objFiles   
   >   MsgBox objFile.Name   
   > Next   
   >   
   >   
   > Peter wrote:   
   >> No problem.  It will force me to get to grips with API.   
   >> Another question has occurred to me now.  I can see how to display a list   
   >> of folders and select one.  Can I access the contents so that I can get   
   >> all the file names in an array?   
   >>   
   >> Sorry about all the individual questions   
   >>   
   >> Peter   
   >>   
   >> "Rick Rothstein"  wrote in message   
   >> news:8_qdnbk8ZtOzJJ7fRVn-pw@comcast.com...   
   >>   
   >>>>Many thanks (I think!).   
   >>>>As a dabbler in Vb (but not in programming, I wrote my first program   
   >>>   
   >>>back in   
   >>>   
   >>>>1968 in a nice air conditioned room!)   
   >>>>I can see I'm going to have some fun.   
   >>>   
   >>>Sorry for the ugliness of the API solution I referred you to; however,   
   >>>as James pointed out, VB does not have direct write access to the dates,   
   >>>so the only solution is to use API functions.   
   >>>   
   >>>Rick - MVP   
   >>>   
   >>   
   >>   
      
   --- 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