After updating to 4.1.6 the problem is solved. The environment-variable is now translated.
- mibz
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
winscp.exe /console /script=ftp.txt
option batch on
option confirm off
# Connect
open ftp://user:passwd@host_ip
# Change remote directory
cd testfolder
# Force binary mode transfer
option transfer binary
# Upload file
put update.log %COMPUTERNAME%.log
# Disconnect
close
# Exit WinSCP
exit