Jump to content

Recommended Posts

Posted

This is regarding the Files Au3 project and the question relates to copying/moving files on disk.

For example, a user copies or moves some files from a user writable directory to C:\Windows which is not user writable.

  • My question is, what is the best way to determine if that destination directory is user writable or not?

I did write a GUI project in AutoIt for file system permissions a while back called ACL Viewer (screenshot in that thread) which shows what permissions each user has and so on. It's probably the most comprehensive permission viewer for Windows file systems at the moment. I never did get to extend it to permission editor though because that takes a gigantic amount of responsibility to mess with users' permissions.

Anyway, long story short. I can check the permissions of each destination directory during any drag and drop to copy/move files. But that could be a lot of work and possibly more overhead.

So I am wondering if there is any way that is more efficient for code and less overhead...

  • Would it make sense to run FileCopy/FileMove and, if that fails, request Admin privileges and run the FileCopy/FileMove again?

I'm really not quite sure what is the best way to proceed here. Therefore, if anyone has any opinions or suggestions on this I would be very grateful.

Thank you. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...