Tag Archives: read

C#: Get description attribute from an enum value

Hi,

in this post I will show how to read a description attribute of an enum value by reflection. Let us assume we have a enum linke this

public enum MetalBands {
	[DescriptionAttribute("This is Metallica from CA")]
	Metallica,
	[DescriptionAttribute("This is Slayer from CA")]
	Slayer,
	[DescriptionAttribute("This is Overkill from NY")]
	Overkill
};

Continue reading C#: Get description attribute from an enum value

Windows: Error: Cannot read from the source file or disk, Could not find this item. This is no longer locate…

Hi,

difficult Windows issue today. A user had the problem that he could not delete a Folder (C:\Temp\orders) , also renaming or moving is not possible. The same behaviour with the command line tools rmdir, ren and move.
The folder was created from Excel with a vba macro.

Error message: Cannot read from source file or disk

The error message was: Cannot delete file: Cannot read from the source file or disk.
Continue reading Windows: Error: Cannot read from the source file or disk, Could not find this item. This is no longer locate…