Problem with gBLoadWave & Prompt

Hallo,
I am using gBLoadWave in a procedure.

I supply a file-name string, but get a dialog for file location. According to the help file this should not happen.
"If fileNameStr is omitted or is "" or the /I flag is used, you get to locate the file via a dialog."
Just pressing enter loads the correct file, but my point is to automate without user input.

How do I suppress the dialog?

Many Thanks

Ralf


The code line is:
gBLoadWave/o/B/N=test/T={80,4} /q/W=1 file_n

file_n is a string which reads e.g. "140320ID.7"

I believe you also need to specify a path to the file using the /P=pathname flag in GBLoadWave. For help with setting the path use
DisplayHelpTopic "Symbolic Paths"

This section from the help for LoadWave also fits GBLoadWave:
Quote:
The file to be loaded is specified by fileNameStr and /P=pathName where pathName is the name of an Igor symbolic path. fileNameStr can be a full path to the file, in which case /P is not needed, a partial path relative to the folder associated with pathName, or the name of a file in the folder associated with pathName. If LoadWave can not determine the location of the file from fileNameStr and pathName, it displays a dialog allowing you to specify the file.

If you use a full or partial path for fileNameStr, see Path Separators for details on forming the path.


Execute:
DisplayHelpTopic "Path Separators" to see that topic.