[dba-Tech] FTP

Stuart McLachlan stuart at lexacorp.com.pg
Tue Apr 25 15:38:19 CDT 2023


It looks as though you have the server name instead of the  login name in the second line of 
your script file

To confirm what is happening:

1. Open a Cmd prompt.
2. enter FTP.exe
3. Enter the lines in the file ftpcmds one at a time and you should see exactly what it 
happening.



On 25 Apr 2023 at 9:30, Rocky Smolin wrote:

> Stuart:
> 
> Using the code you sent me with modifications to pick up the arguments
> from a table it runs to completion but no file appears on the server.
> 
> I used Filezilla to verify that the credentials  the user gave me
> work. And I use Filezilla after running the program to see if  the
> test file is transferred.
> 
> This is what is in strEXE
> 
> C:\windows\system32\ftp.exe -s:"C:\Clients\Charlton\ftpcmds"
> 
> And here's what is in the file ftpcmds. I've replace the password with
> * in this email:
> 
> open server1.charltonweeks.com
> server1.charltonweeks.com
> ************
> cd /
> lcd C:\Clients\Charlton
> binary
> put "This is a test.docx"
> bye
> 
> Do you see the reason why the file might  not be transferring? (Or
> anyone?)
> 
> TIA
> 
> Rocky
> _______________________________________________
> dba-Tech mailing list
> dba-Tech at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/dba-tech
> Website: http://www.databaseadvisors.com
> 




More information about the dba-Tech mailing list