问题
Is this any possible way to set or change windows file and folder attribute with php?
I'm creating desktop.ini file in some folders with php. But I need to make it HSA - Hidden, System file, Archive - In addition I need to make folder read-only which is a R flag.
Is there anyway to do that with PHP ? please help me!
回答1:
Finally I find the answer,
exec("attrib +r <any directory>");
exec("attrib +h +s +a desktop.ini");
来源:https://stackoverflow.com/questions/49629856/how-to-manipulate-windows-file-and-folder-attribute-with-php