Page 1 of 1

File name list?

Posted: 30 Dec 2016 11:26
by anuraag
I want to get only file names inside a folder. Currently when i am using Init Variable File List its showing me with path of files.

Re: File name list?

Posted: 30 Dec 2016 20:48
by Martin
You could use following script to convert the file names:

Code: Select all

for (i in [0 to length(files)-1])
{
  name_start = lastIndexOf(files[i], "/") + 1;
  files[i]=substring(files[i], name_start);
}
Regards,
Martin

Re: File name list?

Posted: 31 Dec 2016 00:01
by anuraag
Thanks Martin.