Can WinSCP output to my current console window, no popups?

Advertisement

Henry
Guest

Can WinSCP output to my current console window, no popups?

I try to download and upload a file from the command line, and I want the output from WinSCP to the same console window from where I called it, so I can process things from .bat files.

For example, I upload a file like this:

C:\Utils\winscp410.exe MyName:MyPassword@myserver.com:22/home/bla/ /console /upload C:\Temp\MyFile.zip /defaults

But this opens a separate console window, instead of just outputting to my current console (from where I called WinSCP).

If I leave the /console option away, I get other popups - which isn't actually a problem, until an error occurs (e.g. file not found). Then I get an error popup, instead of WinSCP just closing wiht an error code.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: Can WinSCP output to my current console window, no popup

Use winscp.com. See documentation.

If I leave the /console option away, I get other popups - which isn't actually a problem, until an error occurs (e.g. file not found). Then I get an error popup, instead of WinSCP just closing wiht an error code.
What popups do you get?

Reply with quote

Advertisement

You can post new topics in this forum