Topic "dont warking same script on winscp.com 5.9"

Author Message
Mikage

Guest


Only winscp.com 5.9 on Windows7(32bit), no longer work is Script that was moving before

CommandLine as follows:
Quote:
set lf=%date:~-10,4%%date:~-5,2%%date:~-2,2%
"C:\winscppath\winscp" /script="D:\dairywork\trans_serv1.scr" /log="M:\ServerLogs\serv1\scplog\log_%lf%.log" > M:\ServerLogs\serv1\scplog\bat_%lf%.log


file bat_yyyymmdd.log Appears as follows:
Quote:
No mapping for the Unicode character exists in the target multi-byte code page


file log_yyyymmdd.log does not exist


but. Same Script(trans_serv1.scr) is operating properly under the following Client conditions:
winscp.com 5.9 on Windows StorageServer 2012R2(64bit)
winscp.com 5.7.7 on Windows StorageServer 2012R2(64bit)
winscp.com 5.7.7 on Windows 7(32bit)


trans_serv1.scr Script as follows:
Quote:
open user1@serv1
option batch on
option confirm off
option transfer binary
option reconnecttime 30
synchronize local "M:\ServerLogs\serv1\http\purelog" /inetpub/logs/LogFiles/Apache
synchronize local "M:ServerLogs\serv1\ftp\purelog" /inetpub/logs/LogFiles/FTPSVC2
close
exit



serv1 Setting at All Client as follows:
Quote:
Password is saved
UTF-8 Encode is Auto



Targer serv1 Server works IIS-FTP on Windows 2008R2
Target FTP Site Settings : Allow UTF-8 is True
(but , it did not change even if set to False)


If Using winscp.exe 5.9 GUI will work without problems.

I do not only continue to use winscp.com 5.7.7 ?


But is another matter , I want to quit to output the raw password to log.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Is your script file in UTF-8 encoding?
https://winscp.net/eng/docs/scripting#using_scripting
Mikage

Guest


Thanks for advice.
Problem has been able to resolve.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License