Re: how to change preference of application used to open a file?
What preferences? WinSCP preferences? Or Windows file association? Can you post some screenshots documenting your settings?
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.