# Can AS grab a file without knowing its name?

**URL:** <https://forum.kirupa.com/t/can-as-grab-a-file-without-knowing-its-name/252398>\
**Category:** flash\
**Created:** [February 19, 2008, 8:54pm UTC](https://forum.kirupa.com/t/can-as-grab-a-file-without-knowing-its-name/252398 "2008-02-19T20:54:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haider](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@haider](https://forum.kirupa.com/u/haider)\
**Post date:** [February 19, 2008, 8:54pm UTC](https://forum.kirupa.com/t/can-as-grab-a-file-without-knowing-its-name/252398/1 "2008-02-19T20:54:06Z")

</div>

A simple question

I have a series of folders, ie folder1, folder2, etc… each with a single pdf file.

Can AS be coded to grab the pdf file inside the folder without specifically coding in the files name…

that is can AS grab a file from a path…

webserver/folder1/\*.pdf

where \* can be anything as long as there is only one pdf file in that folder.

?

Thanks in advance.  
Cheers.
