Results 1 to 6 of 6

Thread: How to determine the size of items of the folderitem?

  1. #1
    Join Date
    Jun 2004
    Posts
    68

    How to determine the size of items of the folderitem?

    I wanted to check the size of the each end every item of the folder. Why I am asking because I am having an item folder and I wanted to track all the items so that I can figure out the growth of the folder. I let you know that I am using RealBasic. Let me know why this particular issue is happening into the situation of mine. Any help on this particular matter will be highly appreciated. Thanks a lot in advance.

  2. #2
    Join Date
    May 2009
    Posts
    637

    Re: How to determine the size of items of the folderitem?

    As far as I know it is an recursive algorithm. If any of the file is directly pointed by the folderitem then you will be able to track the file really easily. If any of the folder is having loop over the item. You should apply the method with recursively and also it will add up the size. If there is an alias is associated then you need to decide whether you can include any item of not. If don’t want any explicit recursion then you can also go with queue of the folder item.

  3. #3
    Join Date
    May 2009
    Posts
    527

    Re: How to determine the size of items of the folderitem?

    Well looking at the mater I know something which you should try to fix the matter of yours and see whether it is working or not. I recommend that you should use diruse to get the requirement of yours. you should get the same from the official website. You should download and install the same on the computer of yours. I let you know that it is not standard windows package so you have install explicitly on the system of yours.

  4. #4
    Join Date
    Apr 2009
    Posts
    488

    Re: How to determine the size of items of the folderitem?

    In this particular matter I am suggesting following code which you should run on the terminal of yours.


    Code:
    dim f as folderitem=getfolderitem("test")
        
    for i as integer = 1 to f.Count
    if f.item.directory = false then
    
    msgbox "it's a file"
    
    else
    
    msgbox "it's a folder"
    
    end if
    
    end if
    
    next

  5. #5
    Join Date
    May 2009
    Posts
    539

    Re: How to determine the size of items of the folderitem?

    Let me know whether any of the above mentioned code worked for you or not. If there is no change in the situation then I recommend you should use the following code and see whether the issue is persisting or not.
    Code:
    sub recursive_folder_search(f as folderitem)
    dim i as integer  
    for i as integer = 1 to f.Count
      if f.item(i).directory then
        msgbox f.item(i).absolutepath+" it's a folder"
       recursive_folder_search(f.item(i))
      else
            msgbox f.item(i).absolutepath+"  "it's a file"
      end if
    next
    end sub

  6. #6
    Join Date
    Jun 2004
    Posts
    68

    Re: How to determine the size of items of the folderitem?

    Well thanks a lot for the replying with the possible solution to help me out. I have used the code which you have mentioned over here and after using the same I have determine the size of the folderitem. I wanted to appreciate your efforts which you have put in to fix the matter of mine. thanks a lot for replying and I will suggest the above mentioned solution to the people who are having the same query which we have discussed over here in this particular thread.

Similar Threads

  1. Determine user object token size
    By Iksura in forum Active Directory
    Replies: 5
    Last Post: 17-05-2012, 11:45 AM
  2. Replies: 3
    Last Post: 17-01-2011, 12:58 PM
  3. How to determine folder size
    By michaelh613 in forum Vista Help
    Replies: 5
    Last Post: 13-04-2009, 06:13 PM
  4. Email - Cannot delete items from Deleted Items folder
    By HELLIAN in forum Windows Vista Mail
    Replies: 2
    Last Post: 22-05-2008, 01:13 AM
  5. Replies: 3
    Last Post: 18-04-2007, 04:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,432,201.84209 seconds with 17 queries