我想删除 c:\ Programs \ MySql \ Backup
文件夹中所有早于1的文件我这样做:
forfiles -p "c:\Programmes\MySql\Backup" -s -m *.* -d 1 -c "cmd /c del @path"
Windows告诉我:
未找到具有指定条件的文件
这个脚本有什么问题吗?
答案 0 :(得分:1)
对于较早的日期,它是-1而不是+1: Try
Dim I As Integer
If lv_id.CheckedItems.Count = 0 Then
For I = 0 To lv_id.Items.Count - 1
lv_id.Items(I).SubItems(1).Text = "Pending"
Next
Else
For I = 0 To lv_id.CheckedItems.Count - 1
lv_id.CheckedItems(I).SubItems(1).Text = "Submitted"
Next
End If
Proc_Items.BackColor = Color.Green
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try