List the content of a server folder

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1

btmbig5

Posts: 1
Joined: Tue May 28, 2013 3:26 pm

Post by btmbig5 » Wed May 29, 2013 10:46 am
I would like to list the content of a specific folder on a server (like Date, Time, File Size, File Name) and save the information in a file that can be read and populate an iSeries DB2 database. Has anybody done this? Thank you. BTM.

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Mon Aug 26, 2013 9:42 am
This can be done by manipulating the File List variable attributes. Just create your file list, then perform a ForEach across that File List. When looping through the file list, you can insert your file information into the DB2 (or any) table as desired.

The Attributes available to you are defined in the help text associated to the command:
FileListVars.JPG
Hope this helps!
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1