Try the following:
require('child_process').exec('start "" "c:\\test"');
Note. If your path does not contain spaces, you can also leave with 'start c:\test', but above - which requires ""both a second argument and doubling the instances \in the path (3rd) argument - the most reliable approach.
source
share