Difference between revisions of "Power Shell"

Jump to navigation Jump to search
109 bytes added ,  10:04, 22 March 2010
m
(→‎Strings: Added "Search")
Line 374: Line 374:
=== Basic Error Catcher ===
=== Basic Error Catcher ===


If you know where the error is likely to occur, then just place an error catcher immediately after it...
If you know where the error is likely to occur, then just place an error catcher immediately after it. This doesn't stop the exception appearing on the console, but does allow you to take some action as a result.
<pre>
<pre>
if (-not $?) {
if (-not $?) {

Navigation menu