Answer» Hi all,
I am new to this but would like to ask if anybody knows how to create a BAT file that when RAN it will change the attributes of the specific folder & all sub folders from READ to full control
Thanks in advance
Mark Don't know what OS you're using. Type attrib /? at the command prompt for all the gory details.
What do you mean by full control? The EXAMPLE below will remove the read-only attribute from all files and folders on the specific path.
attrib -r path\*.* /s /d
Change path as needed.
Hope this helps. Thanks Sidewinder,
I am using Windows XP OS, the application that I am developing requires the user to have full access to certain folders or it denies access to the application. What I wanted to do was create a BAT file that could be run if the user does not have full control to change the attributes rather than the user having to change the attributes manually, so basically the BAT file would remove the read only attribute & give full control to the RELEVANT folder and all sub folders.
I will try what you have sugguested.
Any other ideas would be gratefully recieved
Thanks
MarkATTRIB is actually the easiest way to go about this. Depending on what language you're using, you can also use the FileSystemObject and change attributes from WITHIN the application.
Good luck.
|