Network Slideshow

  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>Ping Function</Title> 
  6.             <Shortcut>ping</Shortcut> 
  7.             <Description>adds a ping function</Description> 
  8.             <Author /
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip>Place IP Address in this area</ToolTip> 
  18.                     <Default>10.10.10.10</Default> 
  19.                 </Literal> 
  20.             </Declarations> 
  21.             <Code Language="PowerShell" Kind="135"><![CDATA[ 
  22. function PingX($ip) { 
  23.     $ping = new-object System.Net.NetworkInformation.ping 
  24.     ($ping.send($ip)).Status -eq 'success' 
  25.  
  26. PingX $param1$]]></Code> 
  27.         </Snippet> 
  28.     </CodeSnippet> 
  29. </CodeSnippets> 
 
Loading...
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.