[python-win32] Directory permissions

michael montagne mmontagne at walkermacy.com
Mon Jan 26 16:32:50 EST 2004


I'm using this code to make directories at login(fso is 
fso=win32com.client.Dispatch('Scripting.FileSystemObject') :

#home directory
sDir="\\\\wmserver1\\Home\\" + sUser
#check that directory exists
if not fso.FolderExists(sDir):
	fso.CreateFolder(sDir)
Trouble is, the permissions are wide open to the world.  I need to give 
the administrator and the user full control but no other access to 
anyone.  Even if I could run a script after the fact and correct all the 
permissions that would be ok.

-mjm




More information about the Python-win32 mailing list