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

oneK

I would love this feature also 8)

Nuno
GlobalWarming Awareness2007 (<invalid hyperlink removed by admin>)
martin

Re: no echo

Thank you very much. However, am I right in thinking in this case you must enter username and password in the script. I only get it to work if you do that but it is not desirable as the script is to be run by different users with different passwords. Is it possible to have the username/password challenge and then nothing or redirect to file?

You cannot do that.
Guest

Re: no echo

martin wrote:

harrysmith0 wrote:

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.

Redirect output of the application to "nul".


Thank you very much. However, am I right in thinking in this case you must enter username and password in the script. I only get it to work if you do that but it is not desirable as the script is to be run by different users with different passwords. Is it possible to have the username/password challenge and then nothing or redirect to file?

Thanks
martin

Re: no echo

harrysmith0 wrote:

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.

Redirect output of the application to "nul".
harrysmith0

no echo

How can I run WinSCP from a script and not have it echo any information? I do not want the command window to output all the thousands of files copied.
martin

OK, added to TODO list :-)
Guest

That is what I mean. You are right that it is normal behavior for an interactive shell FTP/SCP session. In my situation, a program I wrote, an editor, uses WinSCP to upload files. I simply create a text file that contains the WinSCP scripting commands and then ShellExecute "winscp.com" with "/script=filename".

Since the user is not typing in the commands, it would be good for the user to see what the script is doing. Thus, an echo would be a good option. For me. Thanks...
martin

Re: script should echo mkdir

As on most systems, mkdir command does not print anything unless it fails. Why do you mean by "it does not work"?
colfer

script should echo mkdir

When I use a "/script" that includes a "mkdir" the console does not show the command or its result. The "mkdir" does work, but no line is shown in the console.

This is similar to my previous feature request
"script should not overwrite file upload progress"
https://winscp.net/forum/viewtopic.php?t=2108
Thank you for adding that!

Generally, I think the console should echo every command, or have an option to do so.