WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
FTP TO IP ADDRESS (Read 2580 times)
cdacey
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
FTP TO IP ADDRESS
Mar 29th, 2005 at 8:57pm
 
I am trying to use the sample FTP bat file to ftp a file to a site that uses an ip addresses with a port number.  Can this be accomdated.  As example I tried using xx.xx.xx.xx:#### in the FTP site name area, but it did not seem to work (x is numbers in ip and # is port numbers digits).  Any ideas.
Thanks
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: FTP TO IP ADDRESS
Reply #1 - Mar 30th, 2005 at 4:50am
 
Hello,

It is possible to do this, but it requires some extra changes to the .bat file. The trouble is caused by the port number which is not correctly parsed when passed on the command line.

To get this to work, change this line:
Code:
SET FTPSERVER=ftp.yourserver.com
 


to the intended ip address and port (separated by a space).

Then search for this line:
Code:
ECHO verbose off		  >  %RESFI%
 


and add the following after it:
Code:
ECHO open %FTPSERVER% >> %RESFI%
 


Scroll a few lines further, you will find the line that actually starts the FTP session:
Code:
ftp -n -s:%RESFI% %FTPSERVER%
 


Change that line to
Code:
ftp -n -s:%RESFI%
 



That should work.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: FTP TO IP ADDRESS
Reply #2 - Apr 3rd, 2005 at 7:53pm
 
The 3.2.6 version of watchDirectory has updated sample .bat files that have the above changes included.

http://www.watchdirectory.net/watchDirectoryVersions.html
Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1