Topic "Mnimize or hide console winscp"

Author Message
Guest




Hi,

Great Prog!!.....
I am working with the WinSCP.com app. Works great with the redirecting of input/output. Only thing
that isn't possible is to minimize/hide the console window. If i set the minimize in my own create process it doesn't work and there is no startup option for it (i have read the documentation).
So this would be a great enhancement if added.

Second is the "Batch/Confirm option"
It doesn't have an option to do automatic confirms to accept a ssl-certificate automatic for instance. It only defaults to "cancel" or "ignore" with Batch on and confirm on.
So something like "option batch force" to respond with "yes" instead of "cancel" or "ignore"
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Anonymous wrote:
I am working with the WinSCP.com app. Works great with the redirecting of input/output. Only thing
that isn't possible is to minimize/hide the console window. If i set the minimize in my own create process it doesn't work and there is no startup option for it (i have read the documentation).
So this would be a great enhancement if added.

If you are running WinSCP from .Net code, use Process.StartInfo.CreateNoWindow property. See http://winscp.net/eng/docs/guide_dotnet#full_c_example

Quote:
Second is the "Batch/Confirm option"
It doesn't have an option to do automatic confirms to accept a ssl-certificate automatic for instance. It only defaults to "cancel" or "ignore" with Batch on and confirm on.
So something like "option batch force" to respond with "yes" instead of "cancel" or "ignore"

http://winscp.net/eng/docs/scripting#hostkey
Guest




well it's windows api createprocess not the .NET on. But i figured it out. I had to give 2 flags in the Flags parameter : SW_HIDE and wShowWindow=STARTF_USESHOWWINDOW.

I tried with the -certificate parameter. But i don't have a key for it. If i manually connect i only get a window that tells me to accept the certificate (no key input required). its ftp with -implicit.

I don't know if the -certificate works without a supplied key.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Anonymous wrote:
I tried with the -certificate parameter. But i don't have a key for it. If i manually connect i only get a window that tells me to accept the certificate (no key input required). its ftp with -implicit.

But the windows shows you the certificate fingerprint that you need to pass to the -certificate parameter in the script.
_________________
Martin Prikryl
Guest




It seems it has been adressed before and set as resolved. Seems not resolved.

Tracker
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Anonymous wrote:
It seems it has been adressed before and set as resolved. Seems not resolved.

Why do you think so?
_________________
Martin Prikryl
Guest




prikryl wrote:
Anonymous wrote:
It seems it has been adressed before and set as resolved. Seems not resolved.

Why do you think so?


Because it still doesn't work.

Quote from the forum thread :
-----------------
When using command line: winscp.exe [mysession] to try to do FTP SSL, I get the message:
+++ Start of message
If you trust this certificate, press Yes. To connect without storing certificate
, press No. To abandon the connection press Cancel.
Continue connecting and store the certificate?
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
Connection failed.
+++ End of message
So, how do I reply to this message to allow for the certificate?

------------------------------------------------
There is no option that the response would be YES instead of cancel.
In other threads this has been asked before.
let the scripter decide how secure it should be.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License