Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Do you see any output if you run the same command manually?
Guest

No, the winscp_out.txt file is empty.

Nothing to see in console also if I remove the output attribute from
<exec executable="${winscp.exe}" failonerror="true" output="winscp_out.txt" >

Thank you for the help,

SAM
martin

So the output is probably redirected to winscp_out.txt, isn't it?
SAM

Im using WinSCP Version 4.03 (Build 345)

Im starting WinSCP within an ANT-Script. Here is the ANT-Target:

...
<target name="WinSCP upload" depends="nsis">
<exec executable="${winscp.exe}" failonerror="true" output="winscp_out.txt" >
<arg line="/console /script=winscp/upload_file.txt"/>
</exec>
</target>
...

This results in following call
winscp.exe /console /script=winscp/upload_file.txt

Thank you for the help,

SAM
martin

Re: Batch Console is empty during copy

What version of WinSCP are you using? Do you run winscp.com or winscp.exe? How do you run it?
SAM

Batch Console is empty during copy

Hello,

I created a winscp-script that I start from ant to copy some things to my server. But I cannot see the transfer progress. The console window comes up but its empty.

Is there a way to show the progress in console window?

Thank you

SAM

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on

# Disable overwrite confirmations that conflict with the previous
option confirm off
option echo on

# Connect
open user@myserver.com

# Change remote directory
cd /upload

# Force binary mode transfer
option transfer binary

# Upload the file to current working directory
put c:\dir\current\*

#Disconnect
close

# Exit WinSCP