What VFP command should I use to get the value of %SystemDrive%?
John Weller
01380 723235
07976 393631
> Starting with Vista, a new hidden folder off the Root of %systemdrive%
> exists called ProgramData.
> Your loader app can use this folder to store the configuration database
and
> the executable.
>
> It was recommended to use %systemdrive%\ProgramData\{Company
> Name}\{Program Name} to store these files in.
> Your loader application should check the OS version and respond
accordingly.
>
> OS(3) returns:
> 5 - Windows XP
> 6 - Windows Vista/7/8
>
> Be aware, ADIR() will not see a file that has a hidden attribute unless
you
> specify to look for them. There was a problem that happened with several
of
> our clients. Somehow all the files under ProgramData had been marked as
> hidden and it caused some problems until I changed code in our loader.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.