Pull input from a folder rather than a specific file

I'm not too sure if I can do this, so I thought I'd check it out here to see if it would be possible or not.

I would like to pull a file from a folder instead of an actual path to a file.
So it would pull whatever txt file is in the folder C:\Users\me\Desktop\work so all I had to do was put the txt file in that folder and run the file instead of editing the code each and every time if I had to manually input the file name.

I was thinking about somehow pulling the file name off something, use it as a variable, and use that as the input name, but I'm not sure how to make something like that happen.
thanks.
Last edited on
can anyone help? Throw me a bone on where to look?
closed account (48bpfSEw)
Did you mean something like "monitoring a folder"?

http://stackoverflow.com/questions/244941/monitoring-a-folder-for-new-files-in-windows

Topic archived. No new replies allowed.