## Dynamic File Menu

Post your working scripts, libraries and tools
BGM
Posts: 504
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

### Dynamic File Menu

Here is a little script that will load a file structure into a menu.
Spoiler
Here is a simple demo:
Spoiler
Notes:
It's pretty good but not perfect. Everything works fine as long as the script discovers a file matching the filemask. If it finds such a file, it will recurse the folder's subdirectories for other matching files. But if it doesn't find one in the root directory that matches the filemask, then it won't look for more. I've spent hours trying to figure out how to remedy that, but to no avail. If anyone has a good idea, I'll update the script.
qalleponken
Posts: 2
Joined: 12 Jun 2016, 10:14

### Re: Dynamic File Menu

Hi BGM.

Im using your awesome script, which works prefect with local folders but unfortunately not with network folders/shares.
Do you know if its possible to make it work with network folders/shares?

Best Regards.
Qalleponken
BGM
Posts: 504
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

### Re: Dynamic File Menu

Yeah, I confirm that, but I took a quick look at it and haven't figured it out, either.
I suspect it has something to do with using \\ as the first characters of the menuitem name; there is a certain point where a variable name is built, and you can't have \\ in the variable name.

### Who is online

Users browsing this forum: No registered users and 28 guests