Deleting File from HardDrive

  • Thread starter Thread starter Arvind P Rangan
  • Start date Start date
A

Arvind P Rangan

Hi,
After uploading a file i wish to delete the file which has been uploaded.

Can anyone help me on this.
Or give me links for the available Example.

Thanks
Arvind
 
Arvind,

You can make a call to the static Delete method on the File class in the
System.IO namespace to do this.

Hope this helps.
 
Hi Arvind,

You should look into the System.IO namespace, specifically the System.IO.File class. It has a static method, called Delete, that takes in a path that will allow you to delete a file.

Matt Hawley, MCAD .NET http://www.eworldui.net Hi,
After uploading a file i wish to delete the file which has been uploaded.

Can anyone help me on this.
Or give me links for the available Example.

Thanks
Arvind



[microsoft.public.dotnet.framework.aspnet]
 
* "Arvind P Rangan said:
After uploading a file i wish to delete the file which has been uploaded.

'Microsoft.VisualBasic.FileSystem.Kill', 'System.IO.File.Delete'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top