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

Author Message
bytecodeman
[View user's profile]

Joined: 2005-03-29
Posts: 4
Hi!

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.
Tony
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
You are probably not using a full path in target path of the download. It's not recommended.
See https://winscp.net/eng/docs/library_session_getfiles
_________________
Martin Prikryl
bytecodeman
[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!
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License