I was having problems using the Kernel32.dll GetCommandLine function via @WINAPI, so I developed an alternate method using PowerShell.
Here is the .BTM;
Read more
Here is the .BTM;
Code:
@setlocal
@echo off
type <<- endtext > GetCommandLine.ps1
[Environment]::CurrentDirectory = $pwd
Add-Type -TypeDefinition @'
using System;
using System.Runtime.InteropServices;
public static class Kernel32
{...
Read more