in reply to Windows Scriptin Host & OLE.

where can I get information on 'Scripting.FileSystemObject'?

See MSDN FileSystemObject Object Reference and MSDN Folder Object Reference.

Update:

Does anyone know how can I obtain the number of file and folders using the same method?

You could try (untested):

my $folder = Win32::OLE->CreateObject('Scripting.FileSystemObject')->G +etFolder($TargetPath); my $file_count = $folder->Files()->Count(); my $folder_count = $folder->SubFolders()->Count(); my $total = $file_count + $folder_count;

bbfu
Black flowers blossom
Fearless on my breath

Replies are listed 'Best First'.
Re: Re: Windows Scriptin Host & OLE.
by blackadder (Hermit) on Jul 28, 2003 at 10:14 UTC
    Thank you very much sir.