Hi,
it's possible to use Environment variable (%TEMP% or %TMP%) in settings.dat.
i actually use "LoadSettings" function and i need to control the temporary path of downloaded pdf to trash it after consultation.
if it's not possible, have you another method?
Thanks
Environment variable in settings.dat
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Environment variable in settings.dat
Hello mr_steph
I will speak with the guys in the dev team now and we will try to answer your question soon.
Cheers,
Stefan
I will speak with the guys in the dev team now and we will try to answer your question soon.
Cheers,
Stefan
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Environment variable in settings.dat
Hi, mr_steph.
We cannot resolve the %TEMP% (or other environment variables) in the path-names from the settings.dat.
We use the end-user's temporary directory (GetTempPath and GetTempFileName API-finctions used for this) for internal requirements and it cannot be changed by developer's in the current version.
But if you refer to "Open from URL" feature then the download-directory can be changed programmatically by:
Please provide some more details regarding this case as probably we can help you more..
Best
Regards.
We cannot resolve the %TEMP% (or other environment variables) in the path-names from the settings.dat.
We use the end-user's temporary directory (GetTempPath and GetTempFileName API-finctions used for this) for internal requirements and it cannot be changed by developer's in the current version.
But if you refer to "Open from URL" feature then the download-directory can be changed programmatically by:
Code: Select all
ax.SetProperty("Documents.DownloadFolder", "<YourCustomDownloadFolder>", 0);
Best
Regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.