Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Voicemail Pro - Check if file exists 2

Status
Not open for further replies.

ltxn

Technical User
Nov 23, 2007
81
BE
Hi,

I'm trying to create a VBScript module in VMPro to check if a file exists.
We're having +/- 100 Incoming Call Routes routed to the VMPro module. The module plays a dedicated wav based on the last 3 digits of the DDI.
Not all DDI's have a dedicated wav file, for those cases a default wav file should be played.

I was goofing around with a VBScript Action with the following script:

Code:
dim fso, sPath, sFile

sPath = "C:\Program Files\Avaya\IP Office\Voicemail Pro\VM\WAVS\Modules\mVBScript\"
sFile = sPath & $CP2 & ".wav"
Set fso = CreateObject("Scripting.FileSystemObject")

Voice.Result = fso.FileExists(sFile)

fso.FileExists(sFile) returns True or False correctly, though the result of the script is always Failure.

Any help is appreciated.

I've added the module as attachment.
 
 http://files.engineering.com/getfile.aspx?folder=46ef2953-a470-4943-8c54-a26ddb22b503&file=mVBScript.zip
O/T anyone knows how to edit a reply?
 
Only the Templar Knights can do that.
They mostly use their powers on words that they find offensive.
(Unless you * out a letter, then it's ok)

Kind regards

Gunnar
__________________________________________________________________
Hippos have bad eyesight, but considering their weight, it’s hardly their problem

2cnvimggcac8ua2fg.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top