Hi all,
I have a list of filename. This list of filename is variable and change from to time. I want to match these file name to the files available in a directory. If match , open the files.
I write below code and run it. It does not work.
Need guidance here.
folder = "C:\savefile\";
filename ={"Jan", "Feb", "Mar"};
filelist= Files In Directory(folder);
For(i=1, i<= N items(filename), i++,
If (Contains(filename[i], "filelist"),
Open (folder || filename[i] ||".jmp"))
);Are the actual file names you are looking for, named "Jan" or "Feb" or "Mar"? or, are you looking for those month abbreviations to be part of the file name?
A sample of what the actual filenames are would be helpful.