Browse by Tags

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell


  • Set Clipboard

    If you are using Windows Vista or better, you can pipe text to clip.exe to copy it to your clipboard: Dir $env:windir | clip Here is another approach that you can use if your PowerShell host uses the STA mode: function Set-Clipboard { param ( $text )...
    Filed under: ,
  • Get-Clipboard

    If your PowerShell host uses the STA mode, you can easily read clipboard content like this: function Get-Clipboard { if ( $Host . Runspace . ApartmentState -eq ' STA ' ) { Add-Type -Assembly PresentationCore [ Windows.Clipboard ] :: GetText (...
    Filed under: ,
Copyright 2012 All rights reserved.