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\Install Docs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\Marketi ngDocs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\Release Docs\*.*
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_w eb\*.*
cd ..
cd Store_Manager_help_web
mput D:\Share\CustomerSiteDocumentation_SF\ReleaseDocs\ Store_Manager_help_Web\*.*
quit
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\Install Docs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\Marketi ngDocs\*.*
mput D:\Speedshare\CustomerSiteDocumentation_SF\Release Docs\*.*
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_w eb\*.*
cd ..
cd Store_Manager_help_web
mput D:\Share\CustomerSiteDocumentation_SF\ReleaseDocs\ Store_Manager_help_Web\*.*
quit