ScriptTools
is a collection of C# scripts that use dotnet script engine to run.
All scripts are distributed under the MIT license.
- Install .NET 7
- Run from command line (to install
dotnet script
):dotnet tool install -g dotnet-script
- Run from command line (to execute scripts directly from a command line as if they were executables):
dotnet script register
- Create an empty
HelloWorld.csx
text file. - Add this line:
Console.WriteLine("Hello world");
- Run from command line:
HelloWorld.csx
- File2CppByteArray.csx - Converts a file to a C++ bytes array.
- RegisteredWindowMessages.csx - Lists windows messages that were registered with RegisterWindowMessageA() and RegisterWindowMessageW functions.
- ShowBits.csx - Shows bits of any number.