in Education by
I am creating a script on the fly to ftp some files from a remote computer. I create a file which is then called from the command line with ftp -s:filename proxy where filename is the file I just created. The file has code similar to the following: anonymous@ip address username prompt off binary cd c:\destination directory mget c:\source directory\*.* quit That doesn't work. Neither does the following: anonymous@ip address username prompt off binary cd c:\source directory mput c:\destination directory quit Obviously, I'm not so good at ftp. How, in what order, where in my file do I specify the place where I want the files to be put (destination directory, and also from where the ftp process is running), and where I want the files to come from (ip address computer which has files I want). Do I need to set the directory before starting the ftp process? I'm running this in an SSIS package, and I'm not using the SSIS ftp task, because I don't want a failure if no files are found. If there's nothing there, that's cool. If there is something there, I want a copy. (It was working in my development area, and now, when I'm trying to get files from a server that I truely have no access to except ftp, I'm not getting anything. See How to avoid SSIS FTP task from failing when there are no files to download? for an earlier, related question.) Update: Both of the answers below, listing lcd and cd, are correct. However, my example still failed, until I replaced the backslashes with forward slashes. In other words, my final, working result is as follows: anonymous@ip address username prompt off binary lcd /destination directory cd /source directory mget *.* quit JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Are you looking for LCD and CD where LCD changes directory on the local machine? EG: LCD c:\destination directory mget c:\source directory\*.*

Related questions

0 votes
    I am creating a script on the fly to ftp some files from a remote computer. I create a file ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I need to synchronize two tables. TableA Id Name TableB Id Name RefID --It's a Foreign key, defined as ... MATCHED BY TARGET THEN. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I need to synchronize two tables. TableA Id Name TableB Id Name RefID --It's a Foreign key, defined as ... MATCHED BY TARGET THEN. Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    If end to end delay is given by dend-end = N(dproc + dtrans + dprop) is a non congested network. The number of routers between source and destination is? A. N/2 B. N C. N-1 D. 2N...
asked Jan 8, 2023 in Technology by JackTerrance
0 votes
    If there are N routers from source to destination, the total end to end delay in sending packet P(L-> number of bits in the packet R-> ... N B. (N*L)/R C. (2N*L)/R D. L/R...
asked Jan 6, 2023 in Technology by JackTerrance
0 votes
    What option would you specify when inserting code in a web page? script type="____" 1. text/language 2. JavaScript/text 3. text/JavaScript...
asked Feb 23, 2021 in Technology by JackTerrance
+1 vote
    What option would you specify when inserting code in a web page? script type="____" a)text/language b)JavaScript/text c)text/JavaScript...
asked Oct 8, 2020 in Technology by JackTerrance
0 votes
    I am trying to use change tracking to copy data incrementally from a SQL Server to an Azure SQL Database. I ... change tracking table? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I have added external dll files in the script task. The code is working when I am debugging the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 26, 2022 in Education by JackTerrance
0 votes
    I have added external dll files in the script task. The code is working when I am debugging the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Trying to use ES6 but I'm stuck on something. To make it simple there is two problems : JS ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    Using classic templates, publishing via FTP to a custom domain. I want to add custom elements such as: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Is this possible? From what I'm seeing, the only way to get options into the the python class is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    I'm encountering some problems in integrating segue and protocols while implementing a selection list. In my ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
...