Find specific file exist in a folder - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: Find specific file exist in a folder (/Thread-Find-specific-file-exist-in-a-folder) |
Find specific file exist in a folder - shijukonline - 03-14-2011 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" Please help me for this Thanks in advance. RE: Find specific file exist in a folder - surya_7mar - 06-07-2011 Code: sFolderName = "c:\foldername" This will print all the files in a folder where file name starts with "clip" and endd with ".mp4" This will print all the files in folder where the file name starts with "clip" and ends with ".mp4" Code: sFolderName = "c:\foldername" THis will print all the files in a folder starts wirh clip and ends with .mp4 Code: sFolderName = "c:\foldername" This will print all the files in folder where the file name starts with "clip" and ends with ".mp4" Code: sFolderName = "c:\foldername" -------------------------------------------------------------------------------- |