Newsgroups: microsoft.public.scripting.vbscript
From: Jeremy <Jer...@discussions.microsoft.com>
Date: Thu, 5 Nov 2009 08:01:02 -0800
Local: Thurs, Nov 5 2009 4:01 pm
Subject: RE: Problem with recursion and objfolder.size
I'm wrong, what I have below only recurses one level. How do I get this to
apply to all sub folders? Thx, Jeremy "Jeremy" wrote:
> 1l The purpose of the following script is to return attributes of subfolders > into an Excel spread sheet. The way it is now, it only gives the attirbutes > for the root folder. I know I need to add a for...next. I just don't know > what to put after the for. > 2. I get a permissions error with the objfolderf.size line, but not with > Any suggestions please? > -------------------------------- > 'Section 1 - Excel Stuff > intRow = 2 > objExcel.Cells(1, 1).Value = "Date Created" > 'Section 2 - Find folder Attributes > Set objFSO = CreateObject("Scripting.FileSystemObject") > 'For each objFolder in objFSO.GetFolder > objExcel.Cells(intRow, 1).Value = objFolder.DateCreated > 'Next You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||