Category Archives: Scripting & programming

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

Hexdump: Hexdump a binary file and convert it back

Hi,

for hexdump (binary) files and converting back the Linux command line xxd works perfect.

Continue reading Hexdump: Hexdump a binary file and convert it back

Advertisment to support michlstechblog.info

Powershell: Execute a process and capture STDOUT and STDERR

Hi,

if have to execute a process or script from powershell and you have to capture the output you can use the System.Diagnostics.Process class.

I’ve written a simple function for this case 🙂

Continue reading Powershell: Execute a process and capture STDOUT and STDERR

Python: Install Python with pip on Windows by the embeddable zip file

Hi,

to install Python on Windows download the latest version. In this example Python 3.6.5.

Extract the zip file to an directory, e.g. D:\python3.6.5.
Continue reading Python: Install Python with pip on Windows by the embeddable zip file

Debian: Set python 3 as default

Hi,

debian is still delivered with 2.7 as the default version of python. /usr/bin/python is in fact a symlink to the current default versions binary.

The update-alternatives scripts allows to change this.
Continue reading Debian: Set python 3 as default

Powershell: Accessing Applications and Services Logs

Hi,

for showing or exporting the System, Application and Security Log the command let Get-EventLog is the first choice.
Continue reading Powershell: Accessing Applications and Services Logs