Forum Discussion

Systems_Moses's avatar
12 years ago

Importing Bulk PST - using EVPM with VBScript

The code was already submitted by JesusWept3 - its an amazing code - thanks

https://www-secure.symantec.com/connect/forums/help-creating-evpm-script-ingest-psts-difficulty-scripting-filename-autmatically

But here was the slight problem with the code - the INI file invoked by EVPM is saved in UNICODE, the script catered and worked wonderfully in ANSI mode.

After a bit of research (ofcourse Google), i was able to make the following modifications to the VB Script to read and save the file in UNICODE. When creating the file, save the TemplateEVPM.ini file in Unicode mode.

Please note our requirement for the script was just to ingest loads of PST.

I am going to only paste the code that reads and writes to Unicode INI file

(reading file)

Set ReadEVPM = EVPMObj.OpenTextFile(EVPMFileName, 1, False, -1) 

(writing file)

Set WriteEVPM = EVPMObj.OpenTextFile(EVPMFileName, 2, False, -1)

Again JESUSWEPT3 - amazing script - it saved me loads of time manually doing this process - you are a genius !! thanks

 

-----

 

 

  • thanks for the kudos, and im sorry that i didn't update the script, i actually went through the exact same thing with the person i was helping but it was all done off of that thread, I'm really sorry i didn't go back and fix it up, but glad you got it working :)

1 Reply

  • thanks for the kudos, and im sorry that i didn't update the script, i actually went through the exact same thing with the person i was helping but it was all done off of that thread, I'm really sorry i didn't go back and fix it up, but glad you got it working :)