Skip to content

Commit cc0ea39

Browse files
committed
fix(win32): escape spaces in filenames #12
1 parent 7606720 commit cc0ea39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/win32/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function windowsSnapshot(options = {}) {
2121

2222
const displayChoice = displayName ? ` /d "${displayName}"` : ''
2323

24-
exec('"' + path.join(__dirname, 'screenCapture_1.3.1.bat') + '" ' + imgPath + displayChoice, {
24+
exec('"' + path.join(__dirname, 'screenCapture_1.3.1.bat') + '" "' + imgPath + displayChoice + '"', {
2525
cwd: __dirname
2626
}, (err, stdout) => {
2727
if (err) {

0 commit comments

Comments
 (0)