Last active
August 28, 2018 11:15
-
-
Save AndyPiddock/9f3ce1bbe497e201cb0b3e96eb6c424a to your computer and use it in GitHub Desktop.
LiveCode: hide files and folders - windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--thePaths contains a cr delimited list of valid file/folder path | |
set the hideconsolewindows to true | |
put empty into tErrors | |
repeat for each line tPath in thePaths | |
put theFolder&tPath into tPath | |
if last char of tPath = slash then | |
delete last char of tPath | |
end if | |
replace "/" with "\" in tPath | |
put "attrib +s +h ""e&tPath"e into tScript | |
get shell(tScript) | |
if it is not empty then | |
put it &cr after tErrors | |
end if | |
end repeat | |
return tErrors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment