- John Fauss
- PowerBuilder
- Tuesday, 26 September 2023 07:17 PM UTC
As the Windows O/S and the exploits of virus/ransomware and anti-virus software has evolved, so too has the generally-accepted location(s) where an application can safely write a temporary file (such as a PDF to be included as an email attachment) to disk.
I know I'm dating myself, but a L-O-N-GGGG time ago, the TEMP environment variable typically pointed to C:\Temp. Later, it was acceptable to write to the current user's "My Documents" (now just shortened to "Documents") folder, but this location is targeted by ransomware, so it's common now for only trusted apps to have access to this location. More recently, it looks like the TEMP environment variable now points to the C:\users\username\AppData\Local\Temp folder.
Question: The need for temporary files has not gone away, so where does your application write temporary files? I'd be very interested to learn what others are doing.
Many thanks in advance!
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.