Hi Abhijeet,

If you are not satisfied with my previous post then you can try out the 
following code which will directly give you the total no of items present 
in the folder,irrespective of the files and folders.

Set obj=CreateObject("Shell.Application")

set sPath=obj.NameSpace("C:\Users\chandra_bhakat\Desktop\test")

msgbox sPath.Items.count

Thanks,
Shekhar

On Tuesday, June 3, 2014 3:14:08 PM UTC+5:30, Abhijit Biradar wrote:
>
> Hi All,
>
> Can any body tell me the logic to count total number of items (files / 
> folders / any kind setup / zip file / image file etc.)  in a folder using 
> vbscript. 
>
> Thanks in advance. 
>
> Regards,
> Abhijit Biradar
> +91-7875563598
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to