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

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

.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!
martin

Re: .NET DLL - ignores RawCommand when PUT/GET files

Switch -rawsettings can be used to set only session options, not transfer options.

Use -rawconfig instead:
https://winscp.net/eng/docs/rawconfig
julex

.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.