Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PathMakeSystemFolder Function
#1
how do i make a folder a systemfolder ?

http://msdn.microsoft.com/library/defaul...folder.asp

i need this for my desktop.ini function.
http://msdn.microsoft.com/library/defaul...custom.asp
pi
#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.
#3
amazing.

so here is my desktop.ini script, which is currently triggered by powerpro's
context handler.

Format Context *.exe
qm.macro("desktop_ini",_file_)

Code:
Copy      Help
function $_file
dll shlwapi.dll #PathMakeSystemFolder $pszPath
str s.getpath(_file)

str d_ini.format("%sdesktop.ini" s)
rset("0" "ConfirmFileOp" ".ShellClassInfo" d_ini)
rset("0" "IconIndex" ".ShellClassInfo" d_ini)
rset(_file "IconFile" ".ShellClassInfo" d_ini)
rset("test" "InfoTip" ".ShellClassInfo" d_ini)
PathMakeSystemFolder s


Forum Jump:


Users browsing this thread: 1 Guest(s)