Hi .
In a script using the function GETLIST i can build a list of files to send and then using FOREACH i can get (or put) the single file.
After sending (or receiving) i need to change the name of the file just before the suffix to specify that the file was sent successfully:
from abcd.xls i need to rename into abcd.sent.xls.
Is it possible to have the value of the suffix (.xls), its position in the string and the name of the file without suffix?
Best regards
In a script using the function GETLIST i can build a list of files to send and then using FOREACH i can get (or put) the single file.
After sending (or receiving) i need to change the name of the file just before the suffix to specify that the file was sent successfully:
from abcd.xls i need to rename into abcd.sent.xls.
Is it possible to have the value of the suffix (.xls), its position in the string and the name of the file without suffix?
Best regards
FTP Script
- $aFileName = "File_Name.Ext"
- $aName = $aFileName
- $aExt = ""
- $i = 0
- $i = $i-1
Thanks for answering Wandrey
liked Script FTP? Try our other product Email Parser