.NET DLL - ignores RawCommand when PUT/GET files

Advertisement

julex
Joined:
Posts:
2

.NET DLL - ignores RawCommand when PUT/GET files

I am trying to set IgnorePermErrors and PreserveTime RAW settings on WinSCP.

The first question is this:
Am I using right parameter names? They are not documented and I fished them out of Windows Registry settings for WinSCP.

Assuming they are correct, this happens when logging OutputDataReceived event:

winscp> option batch on
batch on
winscp> option confirm off
confirm off
winscp> open -timeout=120 "sftp://1234:1234@123.123.123.123:22" -rawsettings IgnorePermErrors="1" PreserveTime="0"
Searching for host...


However, during actual file transfers, the WinSCP gets the following command:

winscp> put -nopermissions -preservetime -transfer="binary" -- "C:\download\Template.xml" "/Template.xml"

It is worth noting that "-nopermissions" switch is used in all instances regardless if I set it in RawSettings or not. Anyway, it seems like it is setting "preservetime" which I think is the switch responsible for attempting to set time stamp on a file after upload which is where I get errors from our server.

Can you elaborate and set me straight... or put in bug fix request?


Thank you, Julius.

Reply with quote

Advertisement

julex
Joined:
Posts:
2

.DLL real life usage scenarios should include a situation where no GUI has to be run to set any WinSCP parameter with a DLL call.

My particular situation doesn't allow me to set up WinSCP GUI options as the particular transfer can be run on any of the communications machines. Setting all of them up, or changing settings, would be rather laborious.

As such, I would like you to think it over and allow setting any of WinSCP options, being it sessions, transfer or else, from .DLL.

Thanks for awesome job so far!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,815
Location:
Prague, Czechia

You can configure anything you want using the INI file. Using GUI is just a way to do that. Please read the FAQ again.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum