From: Thomas Jollans on
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("\\\sharedfolder", stat.S_IWRITE)
> or
> os.access("\\\sharedfolder", os.W_OK)

That won't work:

>>> print("\\\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.