How to Import the file using powershell
Declare the variable to load CSV file.
If you want to see the ouput in console , just type the $v variable, you will be shown with content loaded into the text file
Then we have run the script line by line, so we must use foreach alias
$v | foreach {
If
{
$_.hide –eq “yes”
}
{
Write-host “ $_.name will be set as $true”
}
No comments:
Post a Comment