Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find specific file exist in a folder
#1
Not Solved
Hi,

How I can write a descriptive program to check whether any .mp4 file exist in a particular folder starting with a specific name like 'clip' (eg. clip0019.mp4)

the below code shows clip0019.mp4 exists if the file is in c folder. I want to check any file starting with clip in .mp4 format exist in c: folder

Code:
filespec = "C:\clip0019.mp4"
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(filespec)) Then
msg = filespec & " exists."
Else
msg = filespec & " doesn't exist."
End If
MsgBox (msg)

Please help me for this

Thanks in advance.
Reply


Messages In This Thread
Find specific file exist in a folder - by shijukonline - 03-14-2011, 04:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to find a specific link mv8167 1 2,714 01-24-2012, 03:09 AM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 2 Guest(s)