Deleting File from HardDrive

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Matt Hawley (mhawley_at_NOSPAM.integrityts.com)
Date: 03/31/04


To: microsoft.public.dotnet.framework.aspnet,microsoft.public.dotnet.languages.csharp,microsoft.public.dotnet.languages.vb
Date: Wed, 31 Mar 2004 07:02:55 -0800

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]



Relevant Pages

  • Deleting File from HardDrive
    ... You should look into the System.IO namespace, ... It has a static method, called Delete, that takes in a path that will allow you to delete a file. ... After uploading a file i wish to delete the file which has been uploaded. ... Arvind ...
    (microsoft.public.dotnet.languages.vb)
  • Deleting File from HardDrive
    ... You should look into the System.IO namespace, ... It has a static method, called Delete, that takes in a path that will allow you to delete a file. ... After uploading a file i wish to delete the file which has been uploaded. ... Arvind ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unification of Methods and Functions
    ... The point is that a static method defined in a class _is_ a part of the ... A dodo class which has a method to return a new dodo when it is born. ... is not language specific, it's design specific. ... Python this is only syntatic sugar but using a module namespace to ...
    (comp.lang.python)
  • Re: Resolving current namespace
    ... > Is there a way to resolve the current namespace in a static method, ... > Mainfrom within a console app? ... public class MyClass ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Resolving current namespace
    ... >> Is there a way to resolve the current namespace in a static method, ... > public class MyClass ...
    (microsoft.public.dotnet.languages.csharp)