[dba-Tech] FTP
Stuart McLachlan
stuart at lexacorp.com.pg
Tue Apr 25 15:48:12 CDT 2023
The other way to test is to delete the "Bye" line and run the Shell as normal, not hidden. It
will stay open and you can see that has happened.
On 26 Apr 2023 at 6:38, Stuart McLachlan wrote:
> 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
> >
>
>
> _______________________________________________
> 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