Skip to content

Instantly share code, notes, and snippets.

@flow4u
flow4u / MyDRE.ps1
Last active January 28, 2021 11:13
PS1: MyDRE easy open session with 2 monitors (mutlimonitor is restricted to 2), also works with 1
# This script for Windows make it easier to run RDP files on Windows
# After downloading the RDP, run this script
# It picks up the latest RDP-file from downloads, copies it to MyDRE.RDP
# Adds a few lines to the RDP for magic (customize in the section: CUSTOM
# Deletes the downloaded RDP file to prevent clutter in your Downloads
# Runs the script
# CUSTOMIZATION
# Par3: select the monintors to be used, make sure these monitors are adjecent
# E.g.: 0,1 = Use Monitor 0 and 1
@flow4u
flow4u / MyDRE.bat
Last active February 17, 2021 06:40
.bat: MyDRE easy open session with 2 monitors (mutlimonitor is restricted to 2), also works with 1
:: This script for Windows make it easier to run RDP files on Windows
:: After downloading the RDP, run this script
:: It picks up the latest RDP-file from downloads, copies it to MyDRE.RDP
:: Adds a few lines to the RDP for magic (customize in the section: CUSTOM
:: Deletes the downloaded RDP file to prevent clutter in your Downloads
:: Runs the script
:: CUSTOMIZATION
:: Par3: select the monintors to be used, make sure these monitors are adjecent
@flow4u
flow4u / MyDRE_RDP.py
Last active January 27, 2021 12:14
Python: MyDRE easy open session with 2 monitors (mutlimonitor is restricted to 2), also works with 1
"""
Version 0.5.2
After compyling with pyinstaller the exe picks up the latest downloaded RDP file, adds a few lines of code
to MyDRE.rdp to ensure 2 monitors (and only 2 monitors) are used (monitor 0 and monitor 1). Leaving a
3rd free for other things.
It runs MyDRE.rdp and it also removes the downloaded RDP file.
The exe can be added to the windows bar, download an RDP and press the shortcut on the windows bar.
"""