Skip to content

Instantly share code, notes, and snippets.

@AndyPiddock
Last active August 28, 2018 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyPiddock/9f3ce1bbe497e201cb0b3e96eb6c424a to your computer and use it in GitHub Desktop.
Save AndyPiddock/9f3ce1bbe497e201cb0b3e96eb6c424a to your computer and use it in GitHub Desktop.
LiveCode: hide files and folders - windows
--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 "&quote&tPath&quote 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