Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "DeleteFile" in [All]

rapi

. .

public static extern bool CeDeleteFile(string lpPathName);

.

function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeDeleteFileRAPI.asp

.

CeDeleteFile("\\test.txt");

.
Documentation
[CeDeleteFile] on MSDN

shell32

.

Microsoft.VisualBasic.FileIO.FileSystem.DeleteFile(string, Microsoft.VisualBasic.FileIO.UIOption, Microsoft.VisualBasic.FileIO.RecycleOption);

wininet

.

static extern bool FtpDeleteFile(IntPtr hConnect, string fileName);

.

Declare Function FtpDeleteFile Lib "wininet.dll" _

.
Documentation
[FtpDeleteFile] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/FtpDeleteFile.asp

Structures

.

FileSystem.DeleteFile(path, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin);

kernel32

.
Summary
.

static extern bool DeleteFile(string lpFileName);

.

static extern bool DeleteFileA([MarshalAs(UnmanagedType.LPStr)]string lpFileName);

.

static extern bool DeleteFileW([MarshalAs(UnmanagedType.LPWStr)]string lpFileName);

.

Use DeleteFileW for Unicode names and DeleteFileA for ANSI names.

.

bool deleted = DeleteFileW(filePath);

.
Documentation
[DeleteFile] on MSDN
.

    //when you use FindFirstFileW, FindNextFileW and DeleteFileW

.

        public bool DeleteFile;

.

            FileInformation.FILE_DISPOSITION_INFO.DeleteFile = true;


 
Access PInvoke.net directly from VS: