Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PathMakeSystemFolder Function
#2
Code:
Copy      Help
dll shlwapi.dll #PathMakeSystemFolder $pszPath

str s.expandpath("$desktop$\sysfolder")
mkdir s
PathMakeSystemFolder s

This only adds FILE_ATTRIBUTE_READONLY attribute, and you also can do it with SetFileAttribute. Interesting that manually setting readonly attribute does not work.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)