这段代码可以帮到你
'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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1520 次 |
| 最近记录: |