Erdin? E. Ka
09-28-2006, 08:35 AM
Hi everyone, :hi:
I need a sample code about "how to counting ".bmp" formatted files in a folder?"
For example;
......
Dim FileFormat as string
Dim FolderName as string
Dim Result as integer
FileFormat = ".bmp"
FolderName: "C:\Pictures\"
Example of result that i want:
MsgBox "Total of the " & FileFormat & formatted files in the " & FolderName & "is " & Result" & "."
......
I tried While ... Wend loop but, i couldn't deal with it.
Can i get the result to a variable? And what should be my code? :dunno
Thans a lot.:help
I need a sample code about "how to counting ".bmp" formatted files in a folder?"
For example;
......
Dim FileFormat as string
Dim FolderName as string
Dim Result as integer
FileFormat = ".bmp"
FolderName: "C:\Pictures\"
Example of result that i want:
MsgBox "Total of the " & FileFormat & formatted files in the " & FolderName & "is " & Result" & "."
......
I tried While ... Wend loop but, i couldn't deal with it.
Can i get the result to a variable? And what should be my code? :dunno
Thans a lot.:help