Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sorry if wrong group but where can i store an application global file on Vista systems...

2 views
Skip to first unread message

Mark Richards

unread,
Sep 14, 2007, 6:46:05 PM9/14/07
to
<language>C++Builder 2007 upgrade 3 installed</language>
<application>VCL Forms Win32</application>
<devOS>Windows XP Pro</devOS>
<TargetOS>windows xp home, pro, and now Vista<targetOS>


My current app works under XP(home and pro) and is NORMALY installed in
program files/acds-pumps

The application is launched by sereveal users in the course of a working day
from the same pc, and they all log on as different users, none of which have
Administrator privlege set.

I use ParamStr(0) to work out the applications folder, so that whenever the
application is run, it can store a few details in a txt file stored in the
application folder. This file is periodically reviewed, to see how much use
the computer gets per userext log file, this is an audit trail

I understand now that my application will not be able to write to this file
when running under Vista unless the user is an Administrator

How do I therefore find a suitable folder in which to write this file so my
application can function as required?

I would like a common area, so that the shift supervisors do not have to
look in everybodies user accounts to see what work was done.I assume such a
location exists under Vista?

If it has %pathtofolder% then does anyone know how to translate the bits
inside the %% to a physical path?


0 new messages