nirpy

Use nircmdc commands in python


License
MIT
Install
pip install nirpy==1.0.5

Documentation


Python

pip install nirpy


Example usage:

# Import this module
import nirpy

# Load nircmdc.exe to system
nirpy.load() # if system 64 bit: nirpy.load(architecture=64)

# NIRCMDC.exe commands:
nirpy.execute('monitor off/on') # Disable/Enable monitor
nirpy.execute('savescreenshotfull photo.png') # Desktop screenshot
nirpy.execute('cdrom open/close') # cdrom Open/Close
nirpy.execute('emptybin') # Empty trashbin
nirpy.execute('speak text Hello World!') # Speak text

# CMD.exe commands:
nirpy.system('echo It works!')

# Clean nirpy cache
nirpy.clean()

# Remove nircmdc.exe from system
nirpy.unload()

#Execute with high process priority
#Process priority: [LOW | NORMAL | HIGH | REALTIME]
nirpy.execute('savescreenshotfull desktop.png', priority='HIGH')

Download file from internet:
file = nirpy.wget(link)

Execute downloaded file:
nirpy.start(file) or nirpy.start('filename.txt')

Add/Remove autorun
nirpy.autorun('C:\\Windows', 'notepad.exe', 'test_name', state=True) # Add notepad to startup
nirpy.autorun('C:\\Windows', 'notepad.exe', 'test_name', state=False) # Remove notepad from startup

nircmdc download : https://www.nirsoft.net/utils/nircmd.html
nircmdc reference: https://nircmd.nirsoft.net
SITE


Module Created by LimerBoy with Love <3