[System.Object[]] doesn't contain a methodnamed 'replace'

后端 未结 3 1691
轻奢々
轻奢々 2021-01-15 01:51

The following is part of the file edit07.html:
From $array I\'m able to access the $empid = $user.employeeid and $seat = $user.Position<

3条回答
  •  囚心锁ツ
    2021-01-15 02:33

    Changed

    $fileContent = Get-Content 'c:\temp\edit07.html'
    

    to

    $fileContent = [IO.file]::ReadAllText('c:\mgmt\schart\edit07.html')
    

提交回复
热议问题