By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,606 Members | 1,577 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,606 IT Pros & Developers. It's quick & easy.

how to delete file when in use

P: n/a
I have an app in which I want to remove a directory on disk. The below code
works just fine unless there is a user logged in through the FTP site to
this directory.

string sFtpPath = @"C:\SomeFTPpath";
DirectoryInfo di = new DirectoryInfo(sFtpPath);

I have even successfully removed the virtual directory from the FTP site
that references this path but I can't seem to find a way to kick a user out
of the directory or terminate his session.

Does anyone have a pointer on this? I haven't been able to find any good
threads on ftp session management or ending a user's session with the box.

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Killing a user session can be done in several ways. Please tell us
about the software and OS you are using for your FTP server.
Don Krapohl
Website quality assurance testing
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.