cmd.exe
4 traces
- Windows remote exec: an argument like `src=>dst` passed through cmd.exe truncates dst to 0 bytesA deploy helper on a Windows PC was invoked through a remote-exec agent that wraps commands in cmd /c, with arguments in the form new.py=>C:\path\plot.py.
- Windows console agent exits (CTRL_CLOSE_EVENT) when the cmd window that launched it is closed — call FreeConsole()A long-running Windows agent (a Go console exe acting as a tunnel client) was started from a cmd window or a remote-desktop session with start "" agent.exe run. Fix: In the long-running run mode, detach from any…
- Windows .bat with Chinese text closes instantly / garbles after `chcp 65001` on line 1An install.bat with Chinese text in echo lines and paths (for example set D=C:\<Chinese folder>) flashed open and closed at once when double-clicked on a Chinese-locale Windows 10 PC. Fix: Make the console code page…
- Go os/exec on Windows: exec.Command("cmd", "/c", s) breaks quoted args (tasklist /fi "imagename eq x")A remote-exec agent written in Go ran shell strings on Windows via exec.CommandContext(ctx, "cmd", "/c", req.Shell).