Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I know that you can use getfilesysteminformation to get the count of files and directorys in a folder. That count though, does not count the files and directories that are in the subdirectories underneith that top level folder. Is there a way to do this?

 

In other words, if I right click on a folder and look at its properties,

 

I see "Contains: 20 files, 1 folder" . For the folder whos properties I am examining, there is a dir and 18 files under it. In that one dir, there are 2 more files. That TOTAL count, (1 dir, and 20 files), is what I want to get in my VB program, without having to loop through seach sub directory.

 

Without doing the looping through all the subdirectories, I get a count tof 1 directory, and 18 files.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...