vb6 - Is there any way to tell if the Windows Directory is writeable without actually writing to it to test? -


I have some old vb6 code that checks to see if the Windows directory is writeable to write it and then Reading a value.

But ... we have a virus scanner that is seeing it as a suspicious behavior, so I want to see it without touching it.

Does a Windows API call for this? (Ideally for 98 and above)

Here's something to remember that the file system Unstable I can see that the only way to use this code before checking is to check that a folder is writable, and then try writing that which you wanted to write. The problem here is that when you do your tests and try to write, a vaporized file system can change things in between. As a result, If your typing fails then you have to be able to handle the exception This means that the initial screening is very unusable. To improve your efforts in writing better exception handlers.

In addition, for Windows 2000 and later Windows should also be directly writable, if the user is running as an administrator, normal behavior to run as an administrator for a very long time But people are starting to get this signal that this is not a good idea. For a long time, there is not a good idea to do anything for your program that needs to be run in this way.

In fact, when started with Windows Vista, the user does not go by default to any administrator, even if the administrator is logged in to the account. Instead, they have to manually choose to run the program as an administrator, or wait for the security check to fail the system security.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -