do{
$ActionVariable = Read-host "Do you want to delete a folder or empty a folder ? [D/E]"
}
until($ActionVariable = "E" -or"D")
Read-host
您好,我正在尝试编写一个脚本,让用户选择清空文件夹或将其作为一个整体删除。我写了一个 do until 循环,它似乎不起作用。我是否定义了直到错误?
do{
$ActionVariable = Read-host "Do you want to delete a folder or empty a folder ? [D/E]"
}
until($ActionVariable = "E" -or"D")
Read-host
您好,我正在尝试编写一个脚本,让用户选择清空文件夹或将其作为一个整体删除。我写了一个 do until 循环,它似乎不起作用。我是否定义了直到错误?