directory counting
Moderators: Hacker, petermad, Stefan2, white
directory counting
Is there the possibilty to count all visible directories?
[face=courier]On 29-03-2004 09:02:43 +0000 vez wrote:
v> Is there the possibilty to count all visible directories?
Alt+Shift+Return (doesn't work for FTP).[/face]
v> Is there the possibilty to count all visible directories?
Alt+Shift+Return (doesn't work for FTP).[/face]
[face=courier]The Protoss do NOT run from their enemies.
It is here, that we shall make our stand.[/face]
It is here, that we shall make our stand.[/face]
directory counting
No, I mean count the number of visible directories on pane.
Re: directory counting
Code: Select all
Set objArgs = WScript.Arguments
Set fso = CreateObject("Scripting.FileSystemObject")
For I = 0 to objArgs.Count - 1
If fso.folderExists( objArgs(I) ) then
Set folder = fso.GetFolder( objArgs(I) )
Count = MsgBox("The Number of folders in current Dir is: " & folder.SubFolders.count, 0, """" & folder & """") 'count folders
'Count = MsgBox("Folders: " & folder.Files.count, 0, """" & folder & """") 'count files
Else
'nothing
End If
Next
'Original by W!ke76(http://www.eforum.de/showthread.php?s=&threadid=1356)