J
jjkboswell
Bearing in mind the Windows recycle bin folder has had 3 names since
Win 95 up to Vista:
x:\RECYCLED (95, 98)
x:\RECYCLER (NT, XP, 2000, 2003)
x:\$Recycle.bin (Vista)
Consider iterating through the the root folder of a drive, and
excluding the recycle bin from your results. It is unacceptable to
simply ignore folders named "RECYCLED", "RECYCLER" or "$Recycle.bin"
by string comparison because, for example, a Vista user may have
created their own "Recycled" folder.
Is there a set of constants for these folders, or a way of discovering
the recycle bin folder for a given volume in .NET?
Consider too that the drive might not be local, and may be accessed
remotely by system share (e.g. \\machine\C$\)
Boz
Win 95 up to Vista:
x:\RECYCLED (95, 98)
x:\RECYCLER (NT, XP, 2000, 2003)
x:\$Recycle.bin (Vista)
Consider iterating through the the root folder of a drive, and
excluding the recycle bin from your results. It is unacceptable to
simply ignore folders named "RECYCLED", "RECYCLER" or "$Recycle.bin"
by string comparison because, for example, a Vista user may have
created their own "Recycled" folder.
Is there a set of constants for these folders, or a way of discovering
the recycle bin folder for a given volume in .NET?
Consider too that the drive might not be local, and may be accessed
remotely by system share (e.g. \\machine\C$\)
Boz