# systemCmd

<!-- https://uncage.vercel.app/docs/api/protocol/node/functions/systemcmd/ -->

```ts
function systemCmd(env): string | undefined;
```

Defined in: node/exe.ts:153

The absolute cmd.exe: `%SystemRoot%\System32\cmd.exe`, else `%ComSpec%` when it is an absolute
path to a `cmd.exe`. Never a bare `cmd.exe` (that would be looked up in the current directory).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `env` | `ProcessEnv` |

## Returns

`string` \| `undefined`
