I am trying to get my PowerShell Script to read a specific line of 8 in different files .ctlin several folders and overwrite it using the finished text and the input made by the user in the text box.
PowerShell Script:
$handler_button3_Click={
if ($textbox1.TextLength -eq 0)
{
$listBox1.Items.Add("Please Register your Release Number!")
}else{
$releasenr = $textbox1.Text
$listBox1.Items.Clear()
$listBox1.Items.Add("Release Number has been overwritten")
$listBox1.Items.Add("You can now proceed your Upload")
}
}
Is there a way to use the for loop to execute the foreach rewrite process that is in the current folder?
source
share