Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: QUESTION

ROCKYS08 wrote:

1) How I check if a file to be transferred already was sent ?

It's sent when the put command finishes or when a whole script finishes. ... BOTH CASES

That was not a question. That was a statement. A transfer is complete once the put command finishes. What do you want to check?

Quote:
2) How I check if file is shipping and get everything ? ... Transferred or Send

What does it mean "file is shipping"?

Sorry, can you be more specific? What's the difference between 1) and 2)?

Quote:
3) How can I send a message to the ftp server ?

What message? ... I end the process good

Again, this is quite vague. There's no way to send a "message" to an FTP server. If the FTP server expects some kind of indication about completed transfer, it has to have it's specific and defined way to do so. We cannot know that. Ask your server administrator.

You may want to read https://winscp.net/eng/docs/script_locking_files_while_uploading
ROCKYS08

QUESTION

1) How I check if a file to be transferred already was sent ?

It's sent when the put command finishes or when a whole script finishes. ... BOTH CASES

Quote:
2) How I check if file is shipping and get everything ? ... Transferred or Send

What does it mean "file is shipping"?

Quote:
3) How can I send a message to the ftp server ?

What message? ... I end the process good

thanks
martin

Re: QUESTION

ROCKYS08 wrote:

1) How I check if a file to be transferred already was sent ?

It's sent when the put command finishes or when a whole script finishes.

2) How I check if file is shipping and get everything ?

What does it mean "file is shipping"?

3) How can I send a message to the ftp server ?

What message?
ROCKYS08

Script

This is my script !!!

@echo off
"C:\SICAES\BACKUP\DLL\WinSCP\WinSCP.com" ^
/log="C:\SICAES\BACKUP\DLL\WinSCP\WinSCP.log" /ini=nul ^
/command ^
"open ftp://SEVE:SEVE@seve.ddns.net/"%1"/" ^
"put D:\SICAESDB\BACKUP\DATOS\"%2 ^
"exit"

set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)

exit /b %WINSCP_RESULT%

PLEASE ... HELP ME !!!

Where and as locate those commands ... ls -la ... etc and ERROR and MSG ???

THANKS !!!
ROCKYS08

QUESTION

HI !!!
1) How I check if a file to be transferred already was sent ?
2) How I check if file is shipping and get everything ?
3) How can I send a message to the ftp server ?

Thanks !!!
martin

Re: (ERROR)ls -la --full-time

Please post a log file.
Lucholp

(ERROR)ls -la --full-time