sorry, first message has not been sent : this is it :<br>Hi all,<br><br>I have a little problem for ftp connexion : i want to download my_file.txt at <a href="http://example.com/upload/my_file.txt">example.com/upload/my_file.txt</a> in my current directory : this is my code :<br>
(define cd (current-directory))<br>(define foo (ftp-establish-connection &quot;<a href="http://example.com">example.com</a>&quot; 21 &quot;username&quot; &quot;pAsswOrd&quot;))<br>(ftp-cd foo &quot;upload&quot;)<br>(ftp-download-file foo (build-path cd) &quot;my_file.txt&quot;)<br>
(ftp-close-connection foo)<br>(printf &quot;my_file has been downloaded&quot;)<br><br>This is ok, my_file.txt is now on my current directory. Now, i write some text with racket in my file, and i want, when it&#39;s finish, upload this new file in my server, so replace <a href="http://example.com/upload/my_file.txt">example.com/upload/my_file.txt</a><br>
<br>However, i think (ftp-upload-file ... ) doesn&#39;t exists in racket, so how can i upload my file ?<br>i have written a bash file (ubuntu) and a batch file (windows) who upload my_file.txt on my server. Can i launch, for example in windows, ftp-upload.bat via racket for upload my file on my server ?<br>
<br>thanks,<br>mw<br><br>-----<br><br>thanks neil, but i don&#39;t know how to write this procedure ... and where can i found the code from the others ftp functions for help me<br>you say use http uploading, this is possible in scheme ?<br>
can you explain me how to do this ?<br><br>thanks<br>,mw<br>