Using a variable to store files in the Application Directory?

My application has functionality where it can store PDF files within a directory called "Certificates" somewhere inside the App directory structure. My question is, where would be the best place to store "Certificates" that will always be where it should be regardless of where on a drive the application is installed? Also, how do I access that directory within my VB.Net code. I've done this once before but it's been awhile and I don't remember what the object is to accomplish this.

Thanks!
BlakeMcKennaAsked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
You can use Application.StartupPath within your application to determine the path where your executable is on the drive, then your would append the string "\Certificates" to it to get your path for where to store your PDFs.
0
 
BlakeMcKennaAuthor Commented:
Thanks Paul...that's what I was looking for.
0
All Courses

From novice to tech pro — start learning today.