Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: iFtpDirExist DirExist Dir Exist Path FTP
host = 'ftp.server.com' user = 'fred' pswd = 'flintstone' ftppath = '/usr/home/bedrock/' file = '*' AddExtender( 'WWINT44I.DLL' ) tophandle = iBegin( 0, '', '' ) conhandle = iHostConnect( tophandle, host, @FTP, user, pswd ) If conhandle == 0 Message( 'ERROR', 'Unable to connect to host' ) Exit EndIf ErrorMode(@OFF) srchhandle = iFtpFindInit( conhandle, ftppath, file, @FALSE, @FALSE ) ErrorMode(@CANCEL) If srchhandle == 0 Message('FTP Dir Exist','Ftp dir does not exist') Else Message('FTP Dir Exist','Ftp dir does exist') EndIf If (IsDefined( srchhandle ) && srchhandle !=0 ) Then iClose( srchhandle ) iClose( conhandle ) iClose( tophandle ) Exit
Article ID: W17378
File Created: 2012:09:21:10:08:48
Last Updated: 2012:09:21:10:08:48