# Can you make a variable out of a folder name?

**URL:** <https://forum.kirupa.com/t/can-you-make-a-variable-out-of-a-folder-name/176928>\
**Category:** Uncategorized\
**Created:** [January 28, 2006, 3:22am UTC](https://forum.kirupa.com/t/can-you-make-a-variable-out-of-a-folder-name/176928 "2006-01-28T03:22:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![conzago](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@conzago](https://forum.kirupa.com/u/conzago)\
**Post date:** [January 28, 2006, 3:22am UTC](https://forum.kirupa.com/t/can-you-make-a-variable-out-of-a-folder-name/176928/1 "2006-01-28T03:22:06Z")

</div>

There is probably a better way to do this but what I want but here’s what I’m looking at.

I’m doing an image viewer for an Art gallery and they will feature as many as thirty artists. I created a general image viewer that works to draw all the images and info from a certain folder. What I want to do is just create thirty folders with different names when some one clicks on the artist name it assigns a folder name to certain variable that the image viewer uses to load up the images and the info. Can I do it? Is it a stupid way to do it? What’s the better way then?

zago, a.k.a. RobotLOVE \<coming soon\>
