I am making a little program and I need to be able to remove the Lock attribute from all files (no matter the extension of those files) in the specified directory. I haven't find any way to do so on the web so far, so I really have no idea how to start a basic code for that job, so all I can really do is give you the elements of my Windows Form:
txtDirectory
: This is where the directory is being displayed/selected. All files in the displayed directory needs to be getting the Lock attribute from them - see btnConfirm to know more.btnSelectDirectory
: This button opens the directory seletion dialog. This section does not need any code - but feel free to add code if you think it could improve my program.btnConfirm
: This button is where, when clicked, all files in the specified directory will be removed from the Lock attribute. This is what I really need help with.
How can I do so?