General programming

Moderators: None (Apply to moderate this forum)
Number of threads: 1642
Number of posts: 2791

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
FTP Batch File Posted by mdlafrance1 on 19 Sept 2012 at 8:46 PM
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:\PortalCopies\portal2ftp.txt

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

cd portals/2/customerdocumentation_sf

mput D:\Speedshare\CustomerSiteDocumentation_SF\InstallDocs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\MarketingDocs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\ReleaseDocs\*.*

cd Menu_Designer_help_web
mput D:\Share\CustomerSiteDocumentation_SF\ReleaseDocs\Menu_Designer_help_Web\*.*

cd ..
cd newfeatures_web
mput D:\Share\CustomerSiteDocumentation_SF\ReleaseDocs\newfeatures_web\*.*

cd ..
cd SLPM_web
mput I:\CustomerSiteDocumentation_SF\releasedocs\SLPM_web\*.*

cd ..
cd Store_Manager_help_web
mput D:\Share\CustomerSiteDocumentation_SF\ReleaseDocs\Store_Manager_help_Web\*.*
quit



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.