| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f36bee4 commit c21068b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,7 +138,7 @@ exec('my.bat', (err, stdout, stderr) => { | |||
| 138 | 138 | }); | |
| 139 | 139 | ||
| 140 | 140 | // Script with spaces in the filename: | |
| 141 | - const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true }); | ||
| 141 | + const bat = spawn('"my script.cmd" a b', { shell: true }); | ||
| 142 | 142 | // or: | |
| 143 | 143 | exec('"my script.cmd" a b', (err, stdout, stderr) => { | |
| 144 | 144 | // ... | |
@@ -158,7 +158,7 @@ exec('my.bat', (err, stdout, stderr) => { | |||
| 158 | 158 | }); | |
| 159 | 159 | ||
| 160 | 160 | // Script with spaces in the filename: | |
| 161 | - const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true }); | ||
| 161 | + const bat = spawn('"my script.cmd" a b', { shell: true }); | ||
| 162 | 162 | // or: | |
| 163 | 163 | exec('"my script.cmd" a b', (err, stdout, stderr) => { | |
| 164 | 164 | // ... | |
| Back | FazBrowse Home | New Git URL |
0 commit comments