FTP file from MAC OS x

I have a agent that creates a file and sends it with ftp… This is made for Win plattforms…How can I make it work with MAC OS?

Any similar solution in mac os?

'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><Create Connection Files><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Dim strFTPini As String

Dim strFTPbat As String 

’ Remove, testing only

counter = 0



strFTPini = "ftp.ini"

strFTPbat = "ftp.bat"

'Get an unused file number so LotusScript can open a file.

fileNum% = Freefile() 

'<<<<<<<<<<<< Create ini file >>>>>>>>>>>>>

Open strFTPini For Output As fileNum% 



ftpuser = AnvNamn

ftppassword = Pass 

ftpaddress = URL

counter = counter + 1

Print #fileNum%, "open " & ftpaddress & Chr(13) & Chr(10) & ftpuser & Chr(13) & Chr(10) & ftppassword & Chr(13) & Chr(10) & "binary" & Chr(13) & Chr(10) & "prompt n" & Chr(13) & Chr(10) & "mput C:\" & ftpfile & Chr(13) & Chr(10) & "bye"



Close #fileNum% 

'<<<<<<<<<<<< /Create ini file >>>>>>>>>>>>>

'<<<<<<<<<<<< Create bat file >>>>>>>>>>>>>

Open strFTPbat For Output As fileNum% 



BatString= "%SystemRoot%\system32\ftp -s:ftp.ini"

counter = counter + 1

Print #fileNum%, BatString



Close #fileNum% 

'<<<<<<<<<<<< Create bat file >>>>>>>>>>>>>

'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><Create Connection Files><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<





'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><Run Ftp bat><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Dim taskId As Integer

taskId% = Shell("ftp.bat", 7)



boxType& = MB_OK + MB_ICONINFORMATION

answer% = Messagebox("Tredjepartsannons, skickad!", boxType&, "Tredjeparts annonsering")





'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><Run Ftp bat><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Subject: use ftp and java as a notes java agent.

Looks like the code cleverly create a ftp.ini file and triggers a shell command.

A better approach is to use an ftp library. There is a few running around for Lotus Notes–one used Win32API called another uses Java.

I recommend the Java for MacOS compatibility. It should work if your java virtual machine is setup on the mac.

Do a search in these forums for Java and FTP or ont he internet. You probably can just get any Java FTP client and integrate it into your Lotus Notes project. To do so, though, you may need to detached your FTP files on the local MacOs to send.

-Kyle Huang

Subject: Java ftp library.

I manage to create it with Java ftp library.

Thank you for the feedback!!