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
Changing FTP File Name (Read 2433 times)
cdacey
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Changing FTP File Name
Mar 4th, 2005 at 4:31pm
 
Is it possible to change the file name when you FTP. 
As example,
I have a file nammed extract01212004.txt .   When it hits a specified directory, I need to FTP to another site and always call it the same name (i.e. always "ABCFILENAME" with no .txt extension).

I then would like to archive my original file with its original name by moving into another folder.   

Thanks
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Changing FTP File Name
Reply #1 - Mar 4th, 2005 at 4:38pm
 
Hi,

Yes, that should be possible.

If you look inside the .bat file there is a line like this:
Code:
ECHO put "%WD_FILE_N%"	  >> %RESFI%
 



If you change that to
Code:
ECHO put "%WD_FILE_N%" "ABCFILENAME" >> %RESFI%
 


all files will be transfered as ABCFILENAME in the future. If you only want this to happen for certain files, let me know.

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
 
cdacey
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Re: Changing FTP File Name
Reply #2 - Mar 14th, 2005 at 10:24pm
 
Thanks ! Cheesy
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1