This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName System.Windows.Forms | |
| Add-Type @' | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class WindowHelper { | |
| [DllImport("user32.dll")] | |
| [return: MarshalAs(UnmanagedType.Bool)] | |
| public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); | |
| [DllImport("user32.dll")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [EditionID] | |
| Professional | |
| [Channel] | |
| Retail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def format_timedelta_to_HHMMSS(td): | |
| td_in_seconds = td.total_seconds() | |
| hours, remainder = divmod(td_in_seconds, 3600) | |
| minutes, seconds = divmod(remainder, 60) | |
| hours = int(hours) | |
| minutes = int(minutes) | |
| seconds = int(seconds) | |
| if minutes < 10: | |
| minutes = "0{}".format(minutes) | |
| if seconds < 10: |