Windows: Fix cd when cwd is on another drive
This commit is contained in:
parent
8aef0421fb
commit
f677081dba
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -559,7 +559,8 @@ function WindowsWriteCommandScript(instance, end) {
|
|||
script.push('@echo off');
|
||||
// Set code page to UTF-8:
|
||||
script.push('chcp 65001>nul');
|
||||
script.push('cd "' + cwd + '"');
|
||||
// We pass /d as an option in case the cwd is on another drive (issue 70):
|
||||
script.push('cd /d "' + cwd + '"');
|
||||
script.push(instance.command);
|
||||
script = script.join('\r\n');
|
||||
Node.fs.writeFile(instance.pathCommand, script, 'utf-8', end);
|
||||
|
|
Loading…
Reference in a new issue