From 914f5fed139e80c69b9a7b520ad15bd16d735cc2 Mon Sep 17 00:00:00 2001 From: mkg0 Date: Mon, 7 Oct 2019 14:25:49 +0200 Subject: [PATCH] update --- src/windows-connect.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/windows-connect.js b/src/windows-connect.js index e5b7ab9..bc9eb27 100644 --- a/src/windows-connect.js +++ b/src/windows-connect.js @@ -3,8 +3,8 @@ var exec = require('child_process').exec; var env = require('./env'); var scan = require('./windows-scan'); -const testingPath = 'C:\\Users\\hearcomadmin\\AppData\\Roaming\\FitKit\\' -const kioskPath = 'C:\\Users\\kioskUser0\\AppData\\Roaming\\FitKit\\' +// const testingPath = 'C:\\Users\\hearcomadmin\\AppData\\Roaming\\FitKit\\' +const hearcomPath = 'C:\\Users\\hearcom\\AppData\\Roaming\\FitKit\\' function execCommand(cmd) { return new Promise(function(resolve, reject) { @@ -34,13 +34,13 @@ function connectToWifi(config, ap, callback) { } fs.writeFileSync( - kioskPath + 'nodeWifiConnect.xml', + hearcomPath + 'nodeWifiConnect.xml', win32WirelessProfileBuilder(selectedAp, ap.password) ); }) .then(function() { return execCommand( - 'netsh wlan add profile filename="'+ kioskPath+'nodeWifiConnect.xml"' + 'netsh wlan add profile filename="'+ hearcomPath+'nodeWifiConnect.xml"' ); }) .then(function() { @@ -52,7 +52,7 @@ function connectToWifi(config, ap, callback) { return execCommand(cmd); }) .then(function() { - return execCommand('del "' + kioskPath + 'nodeWifiConnect.xml"'); + return execCommand('del "' + hearcomPath + 'nodeWifiConnect.xml"'); }) .then(function() { callback && callback();