FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2013, 05:05 PM
Oliver Dewar Oliver Dewar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 Oliver Dewar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 42 sec
Reputation Power: 0
Talking Noobie needs the basics looked over (please)

Hi All.

Total noob to FTP - have some experience in VBA - and I'm using VBA to upload a file via FTP... I have a suspicion that the FTP .txt and .bat files that my VBA code is producing may not be correct. Could you please look them over and tell me what's in error - if anything is?

I can tell you that the file is simply not uploading.

.txt:

Code:
open ftp.mysite.com
ftp@mysite.com
password
cd Website-Search/
binary
put "C:\Users\Office 2\Dropbox\System\Shells\Australia\System\Website-Search-File\Website-Search.csv"
bye


and here's the .bat:

Code:
ftp -s:C:\Users\Office 2\Dropbox\System\Shells\Australia\Directory.txt
Echo "Complete" > C:\Users\Office 2\Dropbox\System\Shells\Australia\Directory.out


Your help will be very appreciated.

Reply With Quote
  #2  
Old February 17th, 2013, 08:51 PM
DonR DonR is online now
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 460 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 1 Day 22 h 15 m 42 sec
Reputation Power: 216
check out this LINK.
scroll down towards bottom of page to see their example scripts.

Reply With Quote
  #3  
Old February 18th, 2013, 05:19 AM
Oliver Dewar Oliver Dewar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 Oliver Dewar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 42 sec
Reputation Power: 0
Red face Thanks... but I still don't get it

Had a look at that... but the example of what I'm trying to do is:

Code:
   
   [User_id]
   [ftp_password]   
   binary
   mput *.html
   cd images
   mput *.gif   
   quit


I've tried working this into my code and I still cannot get the file to upload.

Perhaps you credit me with too much understanding of this.

Can you please amend my original codes to something you know will work? Then I can work those back into my code this end.

Thanks

Reply With Quote
  #4  
Old February 18th, 2013, 11:26 AM
DonR DonR is online now
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 460 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 1 Day 22 h 15 m 42 sec
Reputation Power: 216
I don't ever work with the commandline version of ftp.
But, from the link I gave you, the first thing I noticed was
in your .bat file your first line should include the host you want to connect to
and the .txt file should not.
I believe you need to put double quotes around the path in your .bat file, too[since it has a space in it].
so, your .bat file should be something like this
Code:
ftp -s:"C:\Users\Office 2\Dropbox\System\Shells\Australia\Directory.txt" ftp.mysite.com 
Echo "Complete" > "C:\Users\Office 2\Dropbox\System\Shells\Australia\Directory.out"


Also, .csv files are ASCII files, I believe, not binary, so, they should be uploaded as such.
So, I would assume that your .txt code should be something like this
Code:
ftp@mysite.com 
password 
cd Website-Search/ 
ascii 
put "C:\Users\Office 2\Dropbox\System\Shells\Australia\System\Website-Search-File\Website-Search.csv" 
bye


Are you getting any errors when trying to use your script?

Last edited by DonR : February 18th, 2013 at 02:48 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Noobie needs the basics looked over (please)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap