Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Importing Bulk PST - using EVPM with VBScript

Created: 21 Dec 2012 • Updated: 24 Jan 2013 | 1 comment
This issue has been solved. See solution.

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

-----

Comments 1 CommentJump to latest comment

JesusWept3's picture

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 :)