lcd & mput

can you help me understand what exactly is happening in the foll script?

thanks
---------------------
hash
bin
prompt
lcd C:\DB
mput *
bye
LVL 6
anushahannaAsked:
Who is Participating?
 
sentnerConnect With a Mentor Commented:
That's an ftp script... It's putting all the files from the current directory that it's run from onto the FTP server in the directory c:\DB.
0
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
Hash - displays a # sign as data is transferred
bin - puts it in binary mode so it transfers file as is without fiddling with end of lines from CR LF to LF etc.
prompt - toggles prompt, so will turn it off so it won't prompt durint multiple copies
lcd c:\db - change the local PC default directory to C:\db
mput * - copies all the files from the c:\db directory to the default folder on the ftp site (use cd /whatever to change the path there)
bye - stop the connection.

Steve
0
 
anushahannaAuthor Commented:
so it is directly sending from this box to the destination box?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
anushahannaAuthor Commented:
thanks for the detailed line by line explanation.

so by the line 'bye' the file should be already in destination, right?


0
 
bureshdConnect With a Mentor Commented:
It is sending from wherever that script resides, so yes.
0
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
Yes, correct.
0
 
bureshdCommented:
The file will be there by the time it hits "bye". It won't start that command until it finishes the command just prior.
0
 
anushahannaAuthor Commented:
Thanks very much.
0
 
Steve KnightIT ConsultancyCommented:
Thanks, BTW when you give two people the same points the second answer gets the "assisted" as it doesn't know that  an answer is technically wrong .... "It's putting all the files onto the FTP server in the DEFAULT directory from the LOCAL directory c:\DB"

Anyway as long as you know what it does now!

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.