Prev: ImportError: DLL load failed: The specified module could not be found, SWIG, life, etc
Next: ImportError: DLL load failed: The specified module could notbe found, SWIG, life, etc
From: Thomas Jollans on 5 Jul 2010 10:38 On 07/05/2010 04:19 PM, 朱重八 wrote: > Hi all, > I want to use os.chmod or os.access to check the permission of a > folder on remote Windows computer: > os.chmod("\\1.1.1.1\sharedfolder", stat.S_IWRITE) > or > os.access("\\1.1.1.1\sharedfolder", os.W_OK) That won't work: >>> print("\\1.1.1.1\sharedfolder") \1.1.1.1\sharedfolder >>> > > I saved this python file as a.pyw, run it with pythonw.exe a.pyw, then a > black console window display one second. > Only remote folder has this problem, local folder has no this problem. > > Anybody know how to remove the black console window? Does the script actually work for remote folders? Does the same problem occur for other file operations on remote systems? Maybe someone else knows an answer, otherwise maybe my thoughts will be of some help. Thomas |