Not able to delete the file after using WinSCP

Advertisement

sumangeorge
Joined:
Posts:
14
Location:
Detroit

Not able to delete the file after using WinSCP

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."

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

FilePermissionIssue.JPG

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: Not able to delete the file after using WinSCP

Make sure you call Session.Dispose at the end of the session.

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

Reply with quote

Advertisement

You can post new topics in this forum