I'm creating a small program using Visual Basic 2010 Express. I'm planning to place the program on a CD, along with the files I want to run. The program will have command buttons, and each button will open a different file.
For example, if there is a file on the CD named ReadMe.txt, the user will be able to open it using the program, which is on the same disc as "ReadMe", by clicking the corresponding button (or link) ("ReadMe".)
The problem is, that I don't know what the CD drive letter will be. Is there a code to make the program run a file which is in the same location as the program? Or is there a workaround for this situation?
Thanks in advance.
For example, if there is a file on the CD named ReadMe.txt, the user will be able to open it using the program, which is on the same disc as "ReadMe", by clicking the corresponding button (or link) ("ReadMe".)
The problem is, that I don't know what the CD drive letter will be. Is there a code to make the program run a file which is in the same location as the program? Or is there a workaround for this situation?
Thanks in advance.