From f94d228fd0ecd338e0bf9eb8e0fda35a00e02f4a Mon Sep 17 00:00:00 2001 From: Harrison Neal Date: Mon, 2 Mar 2015 15:02:11 -0500 Subject: [PATCH] Windows AppData paths correction in wipe Windows Vista (>=6.0) introduced the AppData folder, while 2003 and below (<=5.2) used Application Data. Thus, it seems like these two should be swapped. --- lib/agent/actions/wipe/windows.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/agent/actions/wipe/windows.js b/lib/agent/actions/wipe/windows.js index e2c8139ec..92b5ab382 100644 --- a/lib/agent/actions/wipe/windows.js +++ b/lib/agent/actions/wipe/windows.js @@ -3,10 +3,10 @@ var os = require('os'), exec = require('child_process').exec; if (parseFloat(os.release()) > 5.2) { - var data_path = 'Application Data'; + var data_path = join('AppData', 'Local'); var documents_path = ['Contacts', 'Documents', 'Downloads', 'Desktop', 'Pictures', 'Videos']; } else { - var data_path = join('AppData', 'Local'); + var data_path = 'Application Data'; var documents_path = ['Desktop', 'My Documents']; } @@ -55,4 +55,4 @@ exports.clear_ie = function(cb) { // 255 deletes everything, so no need to go one by one exports.clear_ie = function(cb) { exec('RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255', cb); -} \ No newline at end of file +}