No session log using console command and UNC-Path
Starting WinSCP.exe under Windows Server 2008 R2 (64-Bit)
==========================================================
having following path and session file "\\bioforce.ch\dfs\edix\F\F_Log\WinSCP_manu.log"
(UNC-Path pointing to a data server) The logfile WinSCP_manu.log is written as expected.
Example beginning of session file WinSCP_manu.log :
. 2015-09-18 09:21:12.267 --------------------------------------------------------------------------
. 2015-09-18 09:21:12.267 WinSCP Version 5.7.3 (Build 5438) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard)
. 2015-09-18 09:21:12.268 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-09-18 09:21:12.268 Log level: Normal
. 2015-09-18 09:21:12.269 Local account: BIOFORCE\adm.schoenenberger
. 2015-09-18 09:21:12.269 Working directory: C:\Program Files (x86)\WinSCP
. 2015-09-18 09:21:12.269 Process ID: 5784
. 2015-09-18 09:21:12.269 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2015-09-18 09:21:12.269 Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 29.03.2015, DST End: 25.10.2015
. 2015-09-18 09:21:12.270 Login time: Freitag, 18. September 2015 09:21:12
. 2015-09-18 09:21:12.270 --------------------------------------------------------------------------
. 2015-09-18 09:21:12.270 Session name: AOY77068@sftp.tradinggrid.gxs.com (Site)
. 2015-09-18 09:21:12.270 Host name: sftp.tradinggrid.gxs.com (Port: 22)
. 2015-09-18 09:21:12.270 User name: AOY77068 (Password: No, Key file: No)
. 2015-09-18 09:21:12.270 Tunnel: No
. 2015-09-18 09:21:12.271 Transfer Protocol: SFTP (SCP)
. 2015-09-18 09:21:12.271 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2015-09-18 09:21:12.271 Disable Nagle: No
. 2015-09-18 09:21:12.271 Proxy: none
Starting WinSCP.exe by a cmd file, the session file is not written !
=====================================================================
Examples:
Command file FS_Rsta.Cmd containing line
----------------------------------------
"\\bio-xa44\c$\Program Files (x86)\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="\\bioforce.ch\DFS\EDIX\F\F_Log\FS_Rsta.Log"
Script file FS_Rsta.SFT containing
----------------------------------
option batch abort
option confirm off
open AOY77068@sftp.tradinggrid.gxs.com
cd /././POLLABLE
ls
close
exit
It looks like UNC-Pathes would not be supported after /console command because the same is working on a normal workstation
**************************************************************************************************************************
Examples:
Command file FS_Rsta.Cmd containing line
----------------------------------------
"C:\Program Files\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="E:\X-Check2\F\F_Log\FS_Rsta.Log"
Script file FS_Rsta.SFT containing
----------------------------------
option batch abort
option confirm off
open AOY77068@sftp.tradinggrid.gxs.com
cd /././POLLABLE
ls
close
exit
Example beginning of session file FS_Rsta.Log:
----------------------------------------------
. 2015-10-14 19:04:46.209 --------------------------------------------------------------------------
. 2015-10-14 19:04:46.209 WinSCP Version 5.7.5 (Build 5665) (OS 6.1.7601 Service Pack 1 - Windows 7 Starter)
. 2015-10-14 19:04:46.209 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-10-14 19:04:46.209 Log level: Normal
. 2015-10-14 19:04:46.209 Local account: EDI-PC\Transfer
. 2015-10-14 19:04:46.209 Working directory: E:\X-Check2\F\F_TCP
. 2015-10-14 19:04:46.209 Process ID: 6108
. 2015-10-14 19:04:46.209 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="E:\X-Check2\F\F_Log\FS_Rsta.Log"
. 2015-10-14 19:04:46.209 Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 29.03.2015, DST End: 25.10.2015
. 2015-10-14 19:04:46.209 Login time: Mittwoch, 14. Oktober 2015 19:04:46
==========================================================
having following path and session file "\\bioforce.ch\dfs\edix\F\F_Log\WinSCP_manu.log"
(UNC-Path pointing to a data server) The logfile WinSCP_manu.log is written as expected.
Example beginning of session file WinSCP_manu.log :
. 2015-09-18 09:21:12.267 --------------------------------------------------------------------------
. 2015-09-18 09:21:12.267 WinSCP Version 5.7.3 (Build 5438) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard)
. 2015-09-18 09:21:12.268 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-09-18 09:21:12.268 Log level: Normal
. 2015-09-18 09:21:12.269 Local account: BIOFORCE\adm.schoenenberger
. 2015-09-18 09:21:12.269 Working directory: C:\Program Files (x86)\WinSCP
. 2015-09-18 09:21:12.269 Process ID: 5784
. 2015-09-18 09:21:12.269 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2015-09-18 09:21:12.269 Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 29.03.2015, DST End: 25.10.2015
. 2015-09-18 09:21:12.270 Login time: Freitag, 18. September 2015 09:21:12
. 2015-09-18 09:21:12.270 --------------------------------------------------------------------------
. 2015-09-18 09:21:12.270 Session name: AOY77068@sftp.tradinggrid.gxs.com (Site)
. 2015-09-18 09:21:12.270 Host name: sftp.tradinggrid.gxs.com (Port: 22)
. 2015-09-18 09:21:12.270 User name: AOY77068 (Password: No, Key file: No)
. 2015-09-18 09:21:12.270 Tunnel: No
. 2015-09-18 09:21:12.271 Transfer Protocol: SFTP (SCP)
. 2015-09-18 09:21:12.271 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2015-09-18 09:21:12.271 Disable Nagle: No
. 2015-09-18 09:21:12.271 Proxy: none
Starting WinSCP.exe by a cmd file, the session file is not written !
=====================================================================
Examples:
Command file FS_Rsta.Cmd containing line
----------------------------------------
"\\bio-xa44\c$\Program Files (x86)\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="\\bioforce.ch\DFS\EDIX\F\F_Log\FS_Rsta.Log"
Script file FS_Rsta.SFT containing
----------------------------------
option batch abort
option confirm off
open AOY77068@sftp.tradinggrid.gxs.com
cd /././POLLABLE
ls
close
exit
It looks like UNC-Pathes would not be supported after /console command because the same is working on a normal workstation
**************************************************************************************************************************
Examples:
Command file FS_Rsta.Cmd containing line
----------------------------------------
"C:\Program Files\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="E:\X-Check2\F\F_Log\FS_Rsta.Log"
Script file FS_Rsta.SFT containing
----------------------------------
option batch abort
option confirm off
open AOY77068@sftp.tradinggrid.gxs.com
cd /././POLLABLE
ls
close
exit
Example beginning of session file FS_Rsta.Log:
----------------------------------------------
. 2015-10-14 19:04:46.209 --------------------------------------------------------------------------
. 2015-10-14 19:04:46.209 WinSCP Version 5.7.5 (Build 5665) (OS 6.1.7601 Service Pack 1 - Windows 7 Starter)
. 2015-10-14 19:04:46.209 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-10-14 19:04:46.209 Log level: Normal
. 2015-10-14 19:04:46.209 Local account: EDI-PC\Transfer
. 2015-10-14 19:04:46.209 Working directory: E:\X-Check2\F\F_TCP
. 2015-10-14 19:04:46.209 Process ID: 6108
. 2015-10-14 19:04:46.209 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console /script=FS_Rsta.SFT /log="E:\X-Check2\F\F_Log\FS_Rsta.Log"
. 2015-10-14 19:04:46.209 Time zone: Current: GMT+2, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 29.03.2015, DST End: 25.10.2015
. 2015-10-14 19:04:46.209 Login time: Mittwoch, 14. Oktober 2015 19:04:46