Post a reply

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

karlchenal

Re: cannot get log output

karlchenal wrote:

Hello,
I would like to download ascii files from AIX server to a PC running Windows 7 PRO 64 bits.
I am using a script. (it was develloped 5 years ago on winscp)
When I use the console (winscp /console) and I type all the commands one by one, it works fine.
When I pass a script (c:\tun>"C:\tun\WinSCP.exe" /console /script=c:\tun\descgpao.txt /log=c:\tun\lolo
.log), it does not work and no log file is created.
Neither in %TEMP%.
The script is :
option batch abort
option confirm off
open ftp://USER:PASSWD@192.9.201.1/
cd /home/copilot5/stockeur/attente
lcd C:\boitecop
option transfer ascii
# -delete supprime le fichier distant quand le transfert s'est bien passé
get -delete *.s
exit

A console opens and close so quick that I cannot read anyting.

Thank you for your help, KS


I have found why it does not work :
in the comments, there is an accent "é"!
I have typed using 7bit alphabet, and it works.
The script was created using Windows Notepad. I suppose it is not the wright code (UTF8?).
Bis bald, KS
karlchenal

cannot get log output

Hello,
I would like to download ascii files from AIX server to a PC running Windows 7 PRO 64 bits.
I am using a script. (it was develloped 5 years ago on winscp)
When I use the console (winscp /console) and I type all the commands one by one, it works fine.
When I pass a script (c:\tun>"C:\tun\WinSCP.exe" /console /script=c:\tun\descgpao.txt /log=c:\tun\lolo
.log), it does not work and no log file is created.
Neither in %TEMP%.
The script is :
option batch abort
option confirm off
open ftp://USER:PASSWD@192.9.201.1/
cd /home/copilot5/stockeur/attente
lcd C:\boitecop
option transfer ascii
# -delete supprime le fichier distant quand le transfert s'est bien passé
get -delete *.s
exit

A console opens and close so quick that I cannot read anyting.

Thank you for your help, KS