Detecting write-access of a folder even if later not Run as admin.
Suppose you start an application by selecting "Run as Administrator".Then you "saveas" an application file into a folder of your choice. All goes well.Now you restart the application, but not with "Run as administrator."You decide to save another file to the same folder. But you cannot because you need Admin privilege to do it.As the application designer, how can I make my app know if the user-selected folder will be write enabled even if later the app is NOT Run as administrator.So I need an API to detect that the rights of that folder will allow saving if I later run the app as non-admin.i.e. i needif(IsFolderWritableEvenWhenNotRunAsAdmi(<folder name>))<then save the file to this folder>else<user needs to select another folder that will work when not Run as admin>Any suggestions how to do this?I know users should save files somewhere under the Users\ folder, but they don't always want to do this. Thanks,SavoyeSmith
October 14th, 2008 1:39am

Hi, I think you will find a quicker answer on the MSDN Forums here.
Free Windows Admin Tool Kit Click here and download it now
October 14th, 2008 10:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics