Page 1 of 1

File List - Capture only the file name

Posted: Fri Jul 10, 2015 12:48 pm
by kprice
I've been unable to find anything in the documentation for this currently - I'm looking for a way to do the following:

1. List all files in folder A

2. Compare the list of files in folder A to the files in folder B

I've tried using a file list, but it captures the full file path and not just the file name. This might be a stupid question - is there a way to solely retrieve the file names and save them into variables to call again later?

Re: File List - Capture only the file name

Posted: Mon Jul 13, 2015 12:00 pm
by Support_Rick
KPrice ...

The FileList variable captures more than just the file path. Attributes are available to the FileList variable that give you access to FileSize, FilePath, FileName, NameWithoutExtension, LastModifiedDate, etc...

So, you can utilize the FileList variable to do numerous things.

Looping through the FileList variable gives you access to these attributes.

Further Details can be found on our Forum under the Knowledge Center|Example Projects

FileSize Attributes is one example

Print FileList Attributes is another

Let us know if you have any other questions.