the [boolean] turned to be [string] ?
getvmdisktype.ps1
function getvmdisktype{
[boolean]$blndisktype=$true
return $blndisktype
}
getvmdisktype.vb
public function getvmdisktype() boolean
strresult = runscript(getvmdisktype.ps1)
return strresult
end function
error:string "true " can't turn be 'boolean' .
why return "$blndisktype" become 'string'? , why there two" "after "true"?
hello.
you call getvmdisktype.ps1 not function, external powershell script. it's output converted [string] when printed stdout.
Windows Server > Windows PowerShell
Comments
Post a Comment