Topic: How to Create Directory in User Documents Folder?
I am trying to create a directory in the users document folder using
procedure Form1_Button5_OnClick (Sender: TObject; var Cancel: boolean);
begin
CreateDir(GetEnvironmentVariable('USERPROFILE')+'\Documents\My Program\Backups');
end;
I have tried several different ways, but cannot accomplish it. I have no problem writing to the APPDATA Roaming folder, but i want to be able to save some things to my documents for easy access, such as the sqlite.db and the db backups.
Thanks