Category Archives: Scripting & programming

Somthing about Powershell, VB Script, C#, VB.NET

Windows: Recording Audio from the Audio loopback device

Hi,

for learning C# I have created a sample project. I choose the NAudio library to play around with sound interfaces in Windows. Starting from this point the C# project grows :-).
Continue reading Windows: Recording Audio from the Audio loopback device

Windows: Script to uninstall all Hotfixes and Updates

Hi,

here is a “oneliner” to uninstall all Windows Update at once. They were deinstalled in order from the highest to the lowest KB Number which increases speed of the remove process(Latest fix first).
Continue reading Windows: Script to uninstall all Hotfixes and Updates

Powershell: Some examples to use a MySQL Database

Hi,

sometimes it makes sence to write Data in a “real” Databasesystem instead of writing to a text- or xml file.

MySQL offers an native Windows .NET Connector to its Database. You can get it here.

Continue reading Powershell: Some examples to use a MySQL Database

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

1
2
3
4
5
6
7
8
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

Powershell: Export a Excel Worksheet as csv file

Hi,

with a few lines Powershell code it is possible to export a Excel Workbook as a csv file.
Define your excel list

1
2
$sExcelFile="D:\temp\ExcelFile.xlsx"
$sCSVFile="D:\temp\list.csv"

Open Excel using DCOM
Continue reading Powershell: Export a Excel Worksheet as csv file