Getfilename function – Multichannel Systems NeuroExplorer User Manual
Page 144
5.5.1.2. GetFileName Function
GetFileName Function
Returns the file name for the specified index after GetFileCount() was called.
Syntax
GetFileName(double index)
Parameters
Parameter
Type
Description
index
double
Index of the file in the file list created by the last call
to GetFileCount.
Returns
Returns the file name (the full path of the file) for the specified index after GetFileCount() was called.
Comments
None
Usage
NexScript
% repeat analysis for all .nex files in the folder
filefilter = "C:\data\*.nex"
n = GetFileCount(filefilter)
for i=1 to n
name = GetFileName(i)
doc = OpenDocument(name)
if doc > 0
% run the analysis, print results and close the file
ApplyTemplate(doc, "Interspike Interval Histograms")
PrintGraphics(doc)
CloseDocument(doc)
end
end
See Also
Introduction to NexScript Programming
Page 142