I'm having a little problem with my program...
I have to create a file with the application data, but I don't know how to access the %USER% or %APPDATA% directories...
I've tried to use the application folder, but if I install the application in D:\Program Files\(Organization)\(APPName) I cannot write new files in this directory, I can just read or modify if I don't have admin privileges...
So, the question is: How to access the %USER% folder or Get ADMIN privileges with the application... PS.: I'm using VCL in C++ Builder