Topic "Session.ExecutablePath and Application's Current Default Dir"

Author Message
[View user's profile]

Joined: 2005-03-29
Posts: 4

I've been using your WinSCP .NET assembly with much success until today where I decided to be adventurous. Smile I wanted to have only one copy of WinSCP stored on my machine. I have multiple applications that references and make use of WINSCP.exe.

All my apps have their own copies of WinSCP.exe in their directories and everything works fine.

I decided to delete all the WinSCP.exe's from the app directories and use the Session.ExecutablePath property to find that one installed executable.

The result is now downloaded files get stored in the Program Files/Winscp directory and not the default directory of the app.

I'm using the latest 5.7.1.

Any ideas?

Much appreciated.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
You are probably not using a full path in target path of the download. It's not recommended.
Martin Prikryl
[View user's profile]

Joined: 2005-03-29
Posts: 4
I took your suggestion and provided full local paths and things are working great now.

Thx for the reply!

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License