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 +}