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

Re: ini file attributes problems

martin wrote:

OK, I can supress error meassage upon implicit saving to read-only file.

This feature has been implemented already. It will be included into the next release.
jsimlo

Re: ini file attributes problems

martin wrote:

OK, I can supress error meassage upon implicit saving to read-only file.

Many thanks.
martin

Re: ini file attributes problems

OK, I can supress error meassage upon implicit saving to read-only file.
jsimlo

Re: ini file attributes problems

martin wrote:

Also, I would like to request the error messages upon read-only to be removed (at least by an option). Especially, when no change is made.

When no change is made (rare though), file won't be saved anymore.


Rare? Well, there's a new request then.. :)) Most of the programs I know do not report errors from settings saving (including Firefox, Internet Explorer, Total Commander, WinAmp, BSPlayer, Miranda, Notepad, Photoshop, etc.), therefore, I think WinSCP deviates from what could be called an intuitive behavior.

Note that some of the programs mentioned above actually can report such errors when the saving is manually invoked by the user, or when the file is writable, but the disk is full. But they all silently fail upon exit when the file is read only (either because of read-only flag, or because of a read only device: cd-rom, network drive, etc.)

My suggestion is either to siletny fail upon background saving errors (when the user did not invoked any saving himself), which seems to be the best solution for both sides; or at least give us an option to check, to skip any settings errors. As you probably already noticed from many messages from this forum, repeated errors are the most annoying thing that an application can generate.. :))

With kind regards,
jsimlo
martin

Re: ini file attributes problems

jsimlo wrote:

Setting the file as hidden should not prevent the write operation.

Fixed already. Thanks.

Also, I would like to request the error messages upon read-only to be removed (at least by an option). Especially, when no change is made.

When no change is made (rare though), file won't be saved anymore.
jsimlo

ini file attributes problems

Hi,

In version 4.0.3: Settting the winscp403.ini file as read-only issues a message box about "writting" error upon exit. Setting the file as hidden works fine.

In version 4.0.5: Settting the winscp403.ini file as read-only and/or hidden issues several message boxes about "creating" error. Twice upon startup, once upon exit.

Setting the file as hidden should not prevent the write operation. Hidden configs are useful for portable users to hide "unimportant" files on usb. In terms of WinAPI, this can be done by specifying hidden attribute in the call to CreateFile. As it is described in the remarks section of the SDK, in order to preserve file attributes, you need to do something like this:

dwAttribs = GetFileAttributes (szFileName);
CreateFile (szFileName, ..., dwAttribs, ...);

Also, I would like to request the error messages upon read-only to be removed (at least by an option). Especially, when no change is made. Setting a config file as read-only does not earn an error. Disk full earns an error though. Furthermore, running WinSCP from a read-only network drive with ini file present always results in three unwanted errors, which gets annoying.. :))

Take care,
jsimlo