파이썬 공유폴더 점검
-
[Python] winreg 모듈을 이용한 Windows 공유폴더 레지스트리 설정 점검Python/Python for Windows 2019. 8. 24. 11:14
파이썬 winreg 모듈을 이용한 PC 공유폴더 레지스트리 설정 점검 - PC : AutoShareWks - Server : AutoShareServer DOC : https://docs.python.org/3/library/winreg.html winreg — Windows registry access — Python 3.7.4 documentation winreg — Windows registry access These functions expose the Windows registry API to Python. Instead of using an integer as the registry handle, a handle object is used to ensure that the handles are..
-
[Python] Check shared folder of Windows operating system using subprocess and regular expressionPython/Python for Windows 2018. 5. 4. 13:14
파이썬 subprocess와 정규식을 이용한 윈도우 운영체제 공유폴더 점검 import subprocess import re p = re.compile('\w+[$]') for x in subprocess.check_output('net share').split(): p1 = p.findall(str(x)) if p1: print(p1) -------------------------------------------------------- ['C$'] ['IPC$'] ['ADMIN$']