Newsgroups: microsoft.public.scripting.vbscript
From: Jeremy <Jer...@discussions.microsoft.com>
Date: Thu, 5 Nov 2009 06:46:03 -0800
Local: Thurs, Nov 5 2009 2:46 pm
Subject: RE: Problem with recursion and objfolder.size
Solved the recursive part, see below. Now just need help with the
permissions issue when asking for the folder size attribute. 'Script to get info on sub folders '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 objFolder.SubFolders objExcel.Cells(intRow, 1).Value = objFolder.DateCreated Next "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.
| ||||||||||||||