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
In reply to Re: Windows Scriptin Host & OLE.
by bbfu
in thread Windows Scriptin Host & OLE.
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |