Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Where to put log file with UAC on?

Reply
Thread Tools Display Modes

Where to put log file with UAC on?

 
 
House Sparrow
Guest
Posts: n/a

 
      01-22-2008
Hi,

I'm developing an application to run under Windows Vista. Under XP, my
applications create and write to a log file located in the program
files folder beside the exe, but this is prohibited with UAC turned
on.

Where is the correct place to put such files? Users will not generally
be expected to view the log, unless they encounter a problem.

Thanks for any advice,
HS
 
Reply With Quote
 
 
 
 
mayayana
Guest
Posts: n/a

 
      01-22-2008
See the links to the MS docs above, in the
posting titled "VB6 Vista UAC Problem".


> I'm developing an application to run under Windows Vista. Under XP, my
> applications create and write to a log file located in the program
> files folder beside the exe, but this is prohibited with UAC turned
> on.
>
> Where is the correct place to put such files? Users will not generally
> be expected to view the log, unless they encounter a problem.
>
> Thanks for any advice,
> HS



 
Reply With Quote
 
Jane C
Guest
Posts: n/a

 
      01-22-2008
Hi,

"C:\ProgramData\yourprogramname" would be a suitable location.

--
Jane, not plain 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
MVP Windows Shell/User

"House Sparrow" <> wrote in message
news:c842c0dc-e1ad-47c0-aaa3-...
> Hi,
>
> I'm developing an application to run under Windows Vista. Under XP, my
> applications create and write to a log file located in the program
> files folder beside the exe, but this is prohibited with UAC turned
> on.
>
> Where is the correct place to put such files? Users will not generally
> be expected to view the log, unless they encounter a problem.
>
> Thanks for any advice,
> HS


 
Reply With Quote
 
House Sparrow
Guest
Posts: n/a

 
      01-27-2008
Thanks for the advice, but a log file is not really 'per user'.

A system may have may users. When there's a problem, we want to get
one file from one place, not one for each user. Does the Vista design
accommodate this?

Cheers,
HS

On Jan 22, 8:16 pm, "Jane C" <janecol...@invalid.iinet.net.au> wrote:
> Hi,
>
> "C:\ProgramData\yourprogramname" would be a suitable location.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file icons dont match contents-file names hidden Fosbury Windows Vista File Management 0 05-07-2008 10:48 PM
coping file from a remote file share - FILE IS NO LONG THERE bogus error message Heith Windows Vista Networking 0 10-18-2007 08:58 PM
5536 rar file - 2.58 gb downloaded only 14kb text file inside QuickCheese Windows Vista General Discussion 9 09-02-2006 10:57 AM
5536 *.rar file - 2.58gb's but only a 14kb text file inside QuickCheese Windows Vista General Discussion 0 08-30-2006 10:32 PM
File Open and File Save As Dialog Freeze and Hang All Applications Lightfoote Windows Vista File Management 0 07-12-2006 04:39 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59