DonationCoder.com Software > Post New Requests Here
idea connect to a ftp server
sizzle:
I've been searching for a script that would connect to a ftp server (user name and password required) and then transfer multiple files back from the server to the users computer. It seems that there might be something like this out there already. Any ideas?
Thanks
scancode:
I've been searching for a script that would connect to a ftp server (user name and password required) and then transfer multiple files back from the server to the users computer. It seems that there might be something like this out there already. Any ideas?
Thanks
-sizzle (October 04, 2009, 04:31 PM)
--- End quote ---
You can script FTP.exe
--- ---echo open ftp.myftpserver.com>script.ftp
echo myusername>>script.ftp
echo mypassword>>script.ftp
echo binary>>script.ftp
echo get file1>>script.ftp
echo get file2>>script.ftp
echo bye>>script.ftp
ftp -s:script.ftp
del script.ftp
sizzle:
You can script FTP.exe
--- ---echo open ftp.myftpserver.com>script.ftp
[/quote]
ThanksI'm not sure where to customize my enteries.
I'm guessing replace ftp.myserver.com and myusername and mypassword with my personal info.
But what about echo binary
and how do I select the specific files that I want to download. Should I replace echo get file1 with the name of the file?ftp
When I replace ftp.myserver.com I get an error message
If you could be a little more specific that would help.
I am new to all this...........obviously.-scancode (October 04, 2009, 05:08 PM)
--- End quote ---
scancode:
I'm not sure where to customize my enteries.
I'm guessing replace ftp.myserver.com and myusername and mypassword with my personal info.
But what about echo binary
and how do I select the specific files that I want to download. Should I replace echo get file1 with the name of the file?ftp
When I replace ftp.myserver.com I get an error message
If you could be a little more specific that would help.
I am new to all this...........obviously.
-sizzle (October 04, 2009, 08:48 PM)
--- End quote ---
echo open ftp.myftpserver.com>script.ftp
echo myusername>>script.ftp
echo mypassword>>script.ftp
echo binary>>script.ftp
echo get file1>>script.ftp
echo get file2>>script.ftp
echo bye>>script.ftp
ftp -s:script.ftp
del script.ftp
If your files are in different directories, you must use the CD command.
echo get the_directory>>script.ftp
Here's an FTP tutorial to get you started. http://cs.ecs.baylor.edu/~donahoo/classes/tutorials/ftp/ftp.html
sizzle:
OK I placed all the custom info where you indicated in red
and I get an error message that says:
line text: echo open ftp.sizzlermgt.com>script.ftp
Error: This line does not contain a recognized action.
The program exits after this error message
Am I doing something wrong?
Navigation
[0] Message Index
[#] Next page
Go to full version