【发布时间】:2021-09-01 00:44:24
【问题描述】:
如何在脚本中添加类似于重命名的删除功能?它在哪里打开文件浏览器并允许用户选择要删除的文件?有可能还是我必须以另一种方式来做?我需要关于选项 3 的帮助。
}
#now start the loop calling the function named Show-Menu
do {
Show-Menu
#ask the user to make a selection and read this in as a variable
$options = Read-Host "Enter your choice"
switc
#Renames a folder
'2' {
$
# Se = ($renamefolder -split "\\")[-1]
# Change our path so the directories can be referenced more easily via
until ($options -eq 'q')
【问题讨论】:
标签: powershell scripting file-manipulation