Write-IseFile by Bernd Kriszio 24 months ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/1619"></script>download | new post
If you are using ISE put this file anywhere into your PATH and functions depending on it can use it.
. . Require-Function Write-IseFile
$a = New-ISEFile
Write-ISEFile $a ‘This line will neither be wrapped nor truncated’
- you find Require-Function in http://poshcode.org/1617
- function Write-IseFile($file, $msg)
- {
- $Editor = $file.Editor
- $Editor.SetCaretPosition($Editor.LineCount, 1)
- $Editor.InsertText(($msg + "`r`n"))
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
PowerShell Code Repository