Powershell args充当占位符

  
 <代码> test-conn函数
  {
  测试连接数3 -ComputerName args美元
  # args充当占位符的作用,这个占位符必须以args命名,否则不能识别,会抛出异常
  }
  Set-Alias tc Test-Conn
  tc localhost  
  <编辑>结果   
 <代码> tc localhost
  
  源目的地IPV4Address IPV6Address
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  5 cd60537ff主机127.0.0.1::1
  5 cd60537ff主机127.0.0.1::1
  5 cd60537ff主机127.0.0.1::1  
  

请关注如下的微信公众号,获取更多它资讯:
 Powershell args充当占位符“> </p><h2 class=Powershell args充当占位符