diff --git a/doc/api/single-executable-applications.md b/doc/api/single-executable-applications.md index 2dedd17527ba87..2db06fdd7239e1 100644 --- a/doc/api/single-executable-applications.md +++ b/doc/api/single-executable-applications.md @@ -58,16 +58,8 @@ tool, [postject][]: * On Windows: - Using PowerShell: - - ```powershell - cp (Get-Command node).Source hello.exe - ``` - - Using Command Prompt: - ```text - for /F "tokens=*" %n IN ('where.exe node') DO @(copy "%n" hello.exe) + node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')" ``` The `.exe` extension is necessary.