VoiceGuide IVR Software Main Page
Jump to content

Open File In Current Directory

Recommended Posts

When i read a text file using the following code, it does not find the file.

 

Const ForReading = 1

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = objFSO.OpenTextFile("settings.ini", ForReading)

 

What folder does VG look in when you don't specify a path?

 

I want it to look in the same folder that the VGS file is.

 

If it does not look there, as it does not seem to be, how can i get the path of the VGS file?

Share this post


Link to post
What folder does VG look in when you don't specify a path?
The VBScript started is a separate process (started using wscript.exe) so it's default path setting is not be related to VG.

how can i get the path of the VGS file?
From http://www.voiceguide.com/vghelp/html/ResultVariables.htm:

$RV[scriptPath]

 

The path to the location where the script is located. Does not include the "\" at the end.

Share this post


Link to post

$RV[scriptPath] seems to return en empty string for me.

 

Using VG for Dialogic if that matters.

Share this post


Link to post

Looks like "VG for Dialogic" only supports this RV:

 

$RV[scriptsPath]

 

(difference is the s in ScriptsPath) $RV[scriptsPath] may include the "\" on end.

 

 

Also in VG for Dialogic $RV[PathApp] will return path to when VG is installed. (with "\" on end)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×