Problem with gBLoadWave & Prompt
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"
/P=pathnameflag inGBLoadWave. For help with setting the path useMay 22, 2014 at 10:55 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
May 22, 2014 at 11:31 am - Permalink
[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.[/quote]
Execute:
DisplayHelpTopic "Path Separators" to see that topic.
May 22, 2014 at 02:16 pm - Permalink