小编Kis*_*han的帖子

如何在 PowerShell 中使用 Set-NetConnectionProfile 更改 NetConnectionProfile 的名称

我尝试使用如何使用 Set-NetConnectionProfile 更改 NetConnectionProfile 的名称

$Profile=Get-NetConnectionProfile -InterfaceIndex 35
$Profile.Name = "Network1"            
Run Code Online (Sandbox Code Playgroud)

错误是

"Name" is a ReadOnly property.
 At line:1 char:1
+ $Profile.Name = "Network1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) []
+ FullyQualifiedErrorId : ReadOnlyCIMProperty
Run Code Online (Sandbox Code Playgroud)

如何更改名称的只读属性??帮我

powershell powershell-ise powershell-2.0 powershell-3.0

5
推荐指数
2
解决办法
9993
查看次数

如何在c中的数组中使用float

我想在数组中使用浮点值,例如,

array[4];

array[0] = 3.544
array[1] = 5.544
array[2] = 6.544
array[3] = 6.544

float array[] (is giving me error)
Run Code Online (Sandbox Code Playgroud)

但我不知道如何使用帮助我,我是初学者

c arrays

-1
推荐指数
1
解决办法
4万
查看次数