Here is the code that works if you are doing a "loop through" on the network.
<!--<AMFILESYSTEM ACTIVITY="get" SOURCE="Z:\PRIVATE\Ashley\APA\Processd" RESULTDATASET="netauto" FILEPROPERTY="creationtime" />-->
<!--<AMSET VARIABLENAME="var_counter">1</AMSET>-->
<!--<AMLOOP TYPE="DATASET" DATASET="netauto">-->
<!-- <AMLOOP TYPE="FOLDER" FOLDER="Y:\FrmClrHs\RemProc\ChrisTest" RESULTVARIABLE="var_filename">-->
<!--<AMFILESYSTEM ACTIVITY="read_file" FILE="%netauto.Fullname%" RESULTVARIABLE="var_index1" />-->
<!-- <AMSET VARIABLENAME="var_datedifference">%DateDiff("d", netauto.CreationTime, var_fileoutputdate)%</AMSET>-->
<!-- <AMIF EXPRESSION="%var_datedifference% > 30">-->
<!-- <AMFILESYSTEM ACTIVITY="delete" SOURCE="%netauto.Fullname%" />-->
<!-- </AMIF>-->
<!--</AMLOOP>-->
What I'm trying to do is this same process, only, AFTER, I connect to an FTP/SFTP site.
Logically, once connected, the path in the "source" command, should put me in the correct location. However, it doesn't seem to be working.
The ultimate goal is to have the script logon to the FTP/SFTP site, access a specific folder, determine which files in that folder are over X amount of days old, and then, move or delete them.
Thanks for your time!
Ashley