Multiple file / folder upload - EVS

The below source code and script will upload the C:\Documents, C:\Images folders to the /DATA folder in your IDrive account.

Set the below environment before executing the code / script.
  1. Download and place “idevsutil” executable under “C:\idevsutil_win\” folder.
  2. Place your private encryption key in "C:\idevsutil_win\enc_key" file and save.
  3. Enter list of file(s) / folder(s) that you wish to backup in "C:\idevsutil_win\filelist" and save.
  4. For Instance:
    The content of the “filelist” file to backup C:\Documents, C:\Images folders…
    C:\Documents\
    C:\Images\

Code:
//Enter your IDrive username in place of “test_evs”.
#include <windows.h>
#include <iostream>
using namespace std;
int main() {
ShellExecute(NULL,"open","C:\\idevsutil_win\\idevsutil.exe","--pvt-key= C:\\idevsutil_win\\enc_key --files-from=C:\\idevsutil_win\\filelist / test_evs@evs1.ibackup.com::ibackup/DATA/", NULL, SW_SHOW);
}

Script:
'Enter your IDrive username and password in place of “test_evs” and “mypassword” respectively

'Save this script as "C:\idevsutil_win\script.vbs" and execute
Dim oShell

Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "cmd /K CD C:\idevsutil_win\ & SET EVS_PASSWORD=mypassword& idevsutil.exe --pvt-key=/C/idevsutil_win/enc_key --files-from=/C/idevsutil_win/filelist // test_evs@evs1.ibackup.com::ibackup/DATA/"

Set oShell = Nothing