Simple LOG file cration with file content details to local folder
Simple LOG file cration with file content details to local folder
SEPT10,2016.
Greetings to WinSCP Forum members.
Please help me if any one know solution for below log file issue.
How to write a log file for the simple connectivity to a directory in SFTP folder.
Based on below line of code I dont see any log file created in my local folder, either the code is incorrect or something missing.
------------------------------------------------------------------------------------
open sftp://username:example.com:10022/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
echo connected to username mailbox...
get *.zip
ls
echo auto-logging...
C:\Program Files (x86)\WinSCP\WinSCP.com sftp://username:example.com/ /log="C:\test\autowinscp\winscp.log"
exit
------------------------------------------------------------------------------------
In above code snippet the connection establishes and works fine when I called above code in autowinscp.txt file with CALL function in VBA.
Except I dont see winscp.log getting created in local directory (C:\test\autowinscp)
Please let me know is there something in correct in above log file writing syntax.
The original requirement was
when user connects the existing sftp folder based on above script,
if any file(like.zip or any other file) is available in the SFTP folder need to return with available file list and timestamp in log file.
if no file is available in the SFTP folder need to return with zero file status in log file
Thanks for any help here with simple log file creation.
Regards
SEPT10,2016.
Greetings to WinSCP Forum members.
Please help me if any one know solution for below log file issue.
How to write a log file for the simple connectivity to a directory in SFTP folder.
Based on below line of code I dont see any log file created in my local folder, either the code is incorrect or something missing.
------------------------------------------------------------------------------------
open sftp://username:example.com:10022/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
echo connected to username mailbox...
get *.zip
ls
echo auto-logging...
C:\Program Files (x86)\WinSCP\WinSCP.com sftp://username:example.com/ /log="C:\test\autowinscp\winscp.log"
exit
------------------------------------------------------------------------------------
In above code snippet the connection establishes and works fine when I called above code in autowinscp.txt file with CALL function in VBA.
Except I dont see winscp.log getting created in local directory (C:\test\autowinscp)
Please let me know is there something in correct in above log file writing syntax.
The original requirement was
when user connects the existing sftp folder based on above script,
if any file(like.zip or any other file) is available in the SFTP folder need to return with available file list and timestamp in log file.
if no file is available in the SFTP folder need to return with zero file status in log file
Thanks for any help here with simple log file creation.
Regards