You can retrieve the displayed ftp://... name from the p_DocumentName property in Slick-C:
#include "slick.sh"
#include "ftp.sh"
...
_str docName = p_DocumentName;
_str host, port, path;
_ftpParseAddress(docName,host,port,path);
// If you are using the FTP open tab (docked on left by default),
// then you could retrieve a pointer to current connection profile
// and use it instead of hardcoding the system type. This assumes
// that the current active connection profile is VMS. Like so:
// ftpConnProfile_t* pfcp = ftpopenGetCurrentConnProfile();
ftpConnProfile_t fcp;
fcp.System = FTPOS_VMS;
// namePart holds <filename>
_str namePart = _ftpStripFilename(&fcp,path,'P');
// pathPart holds '[Path.To.Files]'
_str pathPart = _ftpStripFilename(&fcp,path,'N');
--rodney