Open unknown folder

Is there any way to give the file path of a folder without knowing the whole file name. I only know the first part of the folder name. It is predefined name. last part of the folder name is automatically generate with the now data. need to give that folder path to extract the archived files inside of that folder.

this is the folder. last part of the folder name is autogenerating.
image

since this is auto generating i could’t give the file name. only part which i now is this.“EXPORT_”. Inside this folder, there is another folder which contains archived file. Therefor i need to give the folder path to archive that file. How can i resolve this issue.

Appreciate all your support on this slight_smile:

@Harsha_Madhushan

As you are getting the directory names

You can use Startswith and Endwith

Directoryname.Startswith("EXPORT_")

Hope this helps you

Thanks

1 Like