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.

List the content of a server folder

Postby 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.
btmbig5
 
Posts: 1
Joined: Tue May 28, 2013 3:26 pm

Re: List the content of a server folder

Postby 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
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support_Rick
Support Specialist
 
Posts: 202
Joined: Tue Jul 17, 2012 2:12 pm


Return to Community Forum

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron