ごみ箱内のファイルを通常のディレクトリであるかのように調べたいと思います。具体的には、そこにあるファイルのリストと、各ファイルがごみ箱に到着した日付を取得します。
1784 次
1 に答える
5
このコードはあなたを助けます
'Access the recycle bin folder
Dim SH As New Shell32.Shell
Dim RecycleBin As Shell32.Folder = SH.NameSpace(Shell32.ShellSpecialFolderConstants.ssfBITBUCKET)
Dim SB As New StringBuilder
'Loop through the Recycle Bin and get each Items Name
For Each Item As Shell32.FolderItem In RecycleBin.Items
SB.AppendLine(Item.Name)
Next Item
'Display the list of filenames in a label
Label1.Text = SB.ToString
于 2012-11-03T10:39:37.827 に答える