Last active
May 7, 2019 14:36
-
-
Save NicholasRoge/7ec88b35e6aec41c7d028ecc5748a70a to your computer and use it in GitHub Desktop.
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
$EXPORT_DIR = "$HOME\Desktop" | |
$EXPORT_FILENAME = "ClipboardContent.xml" | |
$CONTENT = [xml](Get-Clipboard) | |
$CONTENT_BYTE_COUNT = $CONTENT.Length | |
Write-Verbose "Writing $CONTENT_BYTE_COUNT bytes to '$EXPORT_DIR\$EXPORT_FILENAME'." | |
Write-Output $CONTENT > "$EXPORT_DIR\$EXPORT_FILENAME" |
romero126
commented
May 7, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment