Skip to main content
ChildProcess.prototype.spawnfile - node__child_process.d.ts - Node documentation
property ChildProcess.prototype.spawnfile

Usage in Deno

```typescript import { ChildProcess } from "node:node__child_process.d.ts"; ```
The `subprocess.spawnfile` property indicates the executable file name of the child process that is launched. For [fork](../.././node__child_process.d.ts/~/fork), its value will be equal to `process.execPath`. For [spawn](../.././node__child_process.d.ts/~/spawn), its value will be the name of the executable file. For [exec](../.././node__child_process.d.ts/~/exec), its value will be the name of the shell in which the child process is launched.

Type

string