PowerShell
  • Introduction
  • Chapter1: Write a basic powershell script
    • 1.1.Parameters
  • Chapter2: Remote controlling
    • 2.1.Introduction
    • 2.2.System Requirement
    • 2.3.Environment Setting
    • 2.4.Remote login
    • 2.5.Run remote program
    • 2.6.Remote interaction patterns
  • Chapter3: Some remote interactions for Windows 7\/ 10
    • 3.1.USB throughtput interactions
    • 3.2.mSATA throughtput interactions
    • 3.3.UART-echo interactions
    • 3.4.UART-throughput interactions
    • 3.5.UART-loopback interactions
    • 3.6.Ethernet-IIS interactions
    • 3.7.Ethernet-Wake on LAN interactions
    • 3.8.Ethernet-throughput interactions
    • 3.9.Ethernet-static ip interactions
    • 3.10.Ethernet-VPN interactions
    • 3.11.run once interactions
    • 3.12.Time zone interactions
    • 3.13.Firewall interactions
    • 3.14.Watchdog interactions
    • 3.15.File System interactions
    • 3.16.NTP interactions
    • 3.17.SNMP interactions
    • 3.18.FBWF interactions
    • 3.19.EWF interactions
    • 3.20.UWF interactions
  • Chapter4: Common Type
  • Chapter5: Common Operation
  • Chapter6: Socket Programming
Powered by GitBook
On this page
  • This section contain the following items:
  • 1.Array List and Operation
  • 2.Array

Was this helpful?

Chapter4: Common Type

This section contain the following items:

  • 1.Array List and Operation

  • 2.Array

1.Array List and Operation

  • 1.Create an ArrayList and add/delete items

    • add/delete items

        $countries = New-Object System.Collections.ArrayList
        $countries.Add('India')
        $countries.Add('Taiwan')
    • delete items

        $countries.Remove('Taiwan')
    • delete all items $countries.Clear()

  • 2.Traversal

      for($i=0; $i -lt $countries.Count; $i++)
      {
          $countries[$i]
      }

2.Array

  • 1.Create a empty array

      $myArray = @()
  • 2.Add Elements to array

      $myArray += 1
Previous3.20.UWF interactionsNextChapter5: Common Operation

Last updated 5 years ago

Was this helpful?