Click here to Skip to main content
15,075,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried to create and write to a dat file with the UAC on to the Environment.SystemDirectory and it ends up in the virtual store.

What directory could I use with the UAC "on" beside the current directory so that its not quite that visible to the user. Or can I leave it in the VS.?

I thought it would end up under system32 but it appears to be sending the file to the virtual store because of the UAC.


Private EFile As String = Environment.SystemDirectory "\sysmondata4.dat"
Updated 2-Oct-10 8:13am

1 solution

Dim EFile As String = IO.Path.Combine(Environment.SystemDirectory, "sysmondata4.dat")
hdkeyfi 2-Oct-10 15:08pm
mindserve 2-Oct-10 16:23pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900