Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

FTP Batch File

I'm using Windows Scheduled Tasks to run a batch file that calls a text file with all of the FTP commands. There are multiple folder changes on the FTP server and multiple shared folders to be uploaded on the source server server.
My problem is that only the first ftp folder gets the uploads. The following ftp folders don't get the upload files. I know this because I've placed seed files in the source folders.

Here is the batch file:
ftp -s: c:PortalCopiesportal2ftp.txt

And here is the portal2ftp.txt file:
open ftp2.xxxxxxxxxxx.com
upload
xxxxxxx
prompt off

cd portals/2/customerdocumentation_sf

mput D:SpeedshareCustomerSiteDocumentation_SFInstallDocs*.*
mput D:SpeedshareCustomerSiteDocumentation_SFMarketingDocs*.*
mput D:SpeedshareCustomerSiteDocumentation_SFReleaseDocs*.*

cd Menu_Designer_help_web
mput D:ShareCustomerSiteDocumentation_SFReleaseDocsMenu_Designer_help_Web*.*

cd ..
cd newfeatures_web
mput D:ShareCustomerSiteDocumentation_SFReleaseDocs
ewfeatures_web*.*

cd ..
cd SLPM_web
mput I:CustomerSiteDocumentation_SF
eleasedocsSLPM_web*.*

cd ..
cd Store_Manager_help_web
mput D:ShareCustomerSiteDocumentation_SFReleaseDocsStore_Manager_help_Web*.*
quit
Sign In or Register to comment.