Hi all,
Using VB.Net 2005:
I am trying to find out in code if the currently logged on Windows user (application is not elevated) has write permissions to a specific folder, in particular, "c:\Windows".
I have been trying to use FileIOPermission() but just cannot seem to make it work.
I thought something like this may work, but it always returns 'TRUE':
Dim fp As New FileIOPermission(FileIOPermissionAccess.Write, "C:\windows\")
MsgBox(SecurityManager.IsGranted(fp))
Thank you in advance!
Using VB.Net 2005:
I am trying to find out in code if the currently logged on Windows user (application is not elevated) has write permissions to a specific folder, in particular, "c:\Windows".
I have been trying to use FileIOPermission() but just cannot seem to make it work.
I thought something like this may work, but it always returns 'TRUE':
Dim fp As New FileIOPermission(FileIOPermissionAccess.Write, "C:\windows\")
MsgBox(SecurityManager.IsGranted(fp))
Thank you in advance!