kidys 发表于 2018-9-2 12:30:47

Powershell Format-Wide测试

  function funGetProcess()
  {
  if($args)
  {
  Get-Process | Format-Wide -AutoSize
  }
  else
  {
  Get-Process | Format-Wide -Column $i
  }
  }
  cls
  $i=1
  for($i;$i -le 10;$i++)
  {
  Write-Host -ForegroundColor Red "`$i is equal to $i"
  funGetProcess
  }
  Write-Host -ForegroundColor Red "Now use Format-wide -autosize"
  funGetProcess("auto")

页: [1]
查看完整版本: Powershell Format-Wide测试