silvideo
Dec 8th, 2009, 02:56 PM
Hi, I am wondering if it would be possible to create a program that upon being launched it would scan the contents of a designated folder residing in the same directory as the exe file and upon finding any files in that folder it would add them to the form as buttons that could be clicked to open those files.
As an example: if a text file (hello world.txt) and an mpeg file (my movie.mpg) are inside the folder upon double clicking the exe and launching the program, they would appear on the form as two buttons; one would be named "hello world.txt" and the other "my movie. mpg") with or without the extension letters.
Once one button is clicked, the file would open in notepad or WMP.
The way I envision this program is as a dynamic program that would add or subtract buttons every time it is launched depending on the files inside the folder.
Using VB 2008.
thank you for your input
silvio facchin
{email removed}
As an example: if a text file (hello world.txt) and an mpeg file (my movie.mpg) are inside the folder upon double clicking the exe and launching the program, they would appear on the form as two buttons; one would be named "hello world.txt" and the other "my movie. mpg") with or without the extension letters.
Once one button is clicked, the file would open in notepad or WMP.
The way I envision this program is as a dynamic program that would add or subtract buttons every time it is launched depending on the files inside the folder.
Using VB 2008.
thank you for your input
silvio facchin
{email removed}