undead Posted February 3, 2006 Share Posted February 3, 2006 how to check and change permissions and attributes for a file ? Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 how to check and change permissions and attributes for a file ?take a look herehttp://www.autoitscript.com/forum/index.ph...st=0&p=140916and herehttp://www.autoitscript.com/forum/index.ph...st=0&p=139120all i did was search the forum8) Link to comment Share on other sites More sharing options...
ChrisL Posted February 3, 2006 Share Posted February 3, 2006 (edited) This is one I posted a while ago, search for files with Read only attribute, you could modify it quite easily you'll want to look up FileSetAttrib() which you could use instead of where I put up a message box Edit* use it with the beta Search ("D:\Kiosk");replace with your search directory Func Search($current) Local $search = FileFindFirstFile($current & "\*.*") While 1 Dim $file = FileFindNextFile($search) If @error Or StringLen($file) < 1 Then ExitLoop If Not StringInStr(FileGetAttrib($current & "\" & $file), "D") And ($file <> "." Or $file <> "..") Then If StringInStr(FileGetAttrib($current & "\" & $file), "R") then MsgBox (0,$current & "\" & $file, "Has Attribute r") EndIf If StringInStr(FileGetAttrib($current & "\" & $file), "D") And ($file <> "." Or $file <> "..") Then Search($current & "\" & $file) EndIf WEnd FileClose($search) EndFunc Edited February 3, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
MHz Posted February 3, 2006 Share Posted February 3, 2006 You can use the Windows commandline tool called CACLS to modify permissions on files. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now