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

Author Message
sumangeorge
[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:
Code:
"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.

FilePermissionIssue.JPG

martin◆
[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>
Advertisements

You can post new topics in this forum

Search

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