How do I create a folder directly under the user's profile folder or other locations that can be retrieved through an environment variable on the machine?
There may be occasions when files in your installation package pertain to the user currently logged onto the computer. These may be user-specific data files or text files that vary from user to user that your application updates.
Althrough the steps below are specific to using the USERPROFILE environment variable to create a directory in that path, these steps can also be used for any environement variable that is on the users machine, in the same manner.
To create a folder under the user's profile folder, complete the following steps: