Click here to Skip to main content
15,886,806 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.

C:\Users\MYPC\AppData\Local\VirtualStore\Windows\System32


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

1 solution

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

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