This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exec = require('child_process').exec; | |
// show Windows letter, to compatible Windows xp | |
function showLetter(callback) { | |
var wmicResult; | |
var command = exec('wmic logicaldisk get caption', function(err, stdout, stderr) { | |
if(err || stderr) { | |
console.log("root path open failed" + err + stderr); | |
return; |