title: How do I set a hard drive location for my program to search or edit in? (Java)
body: <p>Ok so for starters sorry if this question is phrased wrongly, im not quite sure how to put this. The general idea is id like to write a java program that can be given a letter and search for program folders in the windows program files that start with this letter than return them to you as text destinations. (For example, if i enter the letter J id like it to return something like: C:\Program Files\Java) In other words, is there a way to "set a destination" for your program to work in like in this case windows program files? Also, not just specifically for this program but id like to know if this is possible for future programs such as an aimbot for a game or a modification to another program without editing the actual source code. Thanks for helping, its greatly appreciated! </p>
  
  <p>edit 1: To be more specific, im asking how you can actually target some folder in the OS such as program files\Java than have direct access to its contents such as file names, file types, and the ability to open/view these files.</p>