
5.5.1.1. GetFileCount Function
GetFileCount Function
Returns the number of files that match the file filter.
Syntax
double GetFileCount(string fileFilter)
Parameters
Parameter Type Description
fileFilter string File filter specification. Can contain wildcards (*). For
example, to get all .nex files in folder C:\data\, use
filter "C:\data\*.nex".
Returns
Returns the number of files that match file filter.
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
NexScript Function Categories
Page 141
Comentários a estes Manuais