Topic "Not able to delete the file after using WinSCP"

Author Message
[View user's profile]

Joined: 2016-12-15
Posts: 15
Location: Detroit
I am using WinSCP com library in my vb6 code.
Now it was all working fine in my local, i just deployed WinSCP in Server and ran my program.
From that time i am not able to run the code as it's giving permission denied error.

I dug deep and when i physically go and delete the file i am getting following error:
"The action can't be completed because the file is open in WinSCP: SFTP,FTP,WebDAV and SCP client."
FilePermissionIssue.JPG (28.67 KB)

Description: Screen shot for error which i am getting when i manually go and delete the file.


[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Make sure you call Session.Dispose at the end of the session.

Your duplicate question on Stack Overflow:
<invalid hyperlink removed by admin>

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