Topic "why do I need to install the exe if I reference the DLL?"

Author Message
mscir

Guest


I wrote an SFTP program in VB.NET 2012, it works great using winscp. I was wondering why the program won't work with just the winscp.dll after I download it and add a reference to it in my program. I thought all of the compiled SFTP code was in the DLL, but apparently that's not the case. I have to install the winscp.exe before the program will work.
Is there a way to do the SFTP with just the DLL?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
The .DLL is just a .NET wrapper around .EXE scripting interface, as stated here:
https://winscp.net/eng/docs/library

See also instalation instructions here:
https://winscp.net/eng/docs/library_install
_________________
Martin Prikryl
mscir

Guest


Thanks, I should have read more of the docs.
Chau

Guest


I have the same issue, too. I built a program using winscpnet.dll but when I run it, it's throw an error tell me it must have the winscp.exe to run!
How can I fix it???
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Chau wrote:
I have the same issue, too. I built a program using winscpnet.dll but when I run it, it's throw an error tell me it must have the winscp.exe to run!
How can I fix it???

Put winscp.exe to the same folder, where winscpnet.dll is.
See https://winscp.net/eng/docs/library_install#installing
_________________
Martin Prikryl
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