Solved

Using a variable to store files in the Application Directory?

Posted on 2014-10-15
2
98 Views
Last Modified: 2014-10-16
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!
0
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 40383330
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
 

Author Closing Comment

by:BlakeMcKenna
ID: 40384117
Thanks Paul...that's what I was looking for.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question