simonq2 Report post Posted 09/01/2006 05:03 AM 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
SupportTeam Report post Posted 09/01/2006 05:12 AM 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
simonq2 Report post Posted 09/01/2006 05:19 AM $RV[scriptPath] seems to return en empty string for me. Using VG for Dialogic if that matters. Share this post Link to post
SupportTeam Report post Posted 09/01/2006 05:34 AM 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