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 "MoveFile" in [All]

kernel32

.

     FsctlMoveFile = (EFileDevice.FileSystem << 16) | (29 << 2) | EMethod.Buffered | (0 << 14),

.
Summary
.

static extern bool MoveFileWithProgress(string lpExistingFileName,

.

   IntPtr lpData, MoveFileFlags dwFlags);

.

CopyProgressRoutine, MoveFileFlags

.

    static extern bool MoveFileWithProgress(string lpExistingFileName, string lpNewFileName,

.

       CopyProgressRoutine lpProgressRoutine, IntPtr lpData, MoveFileFlags dwCopyFlags);

.

    enum MoveFileFlags : uint

.

    CopyFileEx(oldFile, newFile, new CopyProgressRoutine(this.CopyProgressHandler), IntPtr.Zero, MoveFileFlags .MOVE_FILE_REPLACE_EXISTSING|MoveFileFlags.MOVE_FILE_WRITE_THROUGH|MoveFileFlags.MOVE_FILE_COPY_ALLOWED);

.
Documentation
[MoveFileWithProgress] on MSDN
.
Summary
.

static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName,

.

   MoveFileFlags dwFlags);

.

Declare Unicode Function MoveFileEx Lib "kernel32.dll" Alias "MoveFileExW" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal dwFlags As MoveFileFlags) As Integer

.

MoveFileFlags

.

MoveFileEx(dstFile, null, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);

.

MoveFileEx(srcFile, dstFile, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);

.
Documentation
[MoveFileEx] on MSDN
.
Summary
.

static extern bool MoveFileWithProgress(string lpExistingFileName,

.

   IntPtr lpData, MoveFileFlags dwFlags);

.

CopyProgressRoutine, MoveFileFlags

.

    static extern bool MoveFileWithProgress(string lpExistingFileName, string lpNewFileName,

.

       CopyProgressRoutine lpProgressRoutine, IntPtr lpData, MoveFileFlags dwCopyFlags);

.

    enum MoveFileFlags : uint

.

    CopyFileEx(oldFile, newFile, new CopyProgressRoutine(this.CopyProgressHandler), IntPtr.Zero, MoveFileFlags .MOVE_FILE_REPLACE_EXISTSING|MoveFileFlags.MOVE_FILE_WRITE_THROUGH|MoveFileFlags.MOVE_FILE_COPY_ALLOWED);

.
Documentation
[MoveFileWithProgress] on MSDN

user32

.

In this example, I did not do the file operation, just simply display a message box, practical application, the use of MoveFile and CopyFile functions to complete, this article is not discussed.

.

在这个例子中,我并没有进行文件操作,只是简单的显示一个消息框,实际应用时,需要使用MoveFile和CopyFile函数来完成,本文不做讨论。

rapi

.

      public static extern int CeMoveFile(

.

Declare Function CeMoveFile Lib "rapi.dll" (TODO) As TODO

.
Documentation
[CeMoveFile] on MSDN

Enums

.
Summary
.

enum MoveFileFlags

.

    MOVEFILE_REPLACE_EXISTING           = 0x00000001,

.

    MOVEFILE_COPY_ALLOWED               = 0x00000002,

.

    MOVEFILE_DELAY_UNTIL_REBOOT         = 0x00000004,

.

    MOVEFILE_WRITE_THROUGH              = 0x00000008,

.

    MOVEFILE_CREATE_HARDLINK            = 0x00000010,

.

    MOVEFILE_FAIL_IF_NOT_TRACKABLE      = 0x00000020

.

Enum MoveFileFlags As UInteger

.

    MOVEFILE_REPLACE_EXISTING           = &H1

.

    MOVEFILE_COPY_ALLOWED               = &H2

.

    MOVEFILE_DELAY_UNTIL_REBOOT         = &H4

.

    MOVEFILE_WRITE_THROUGH              = &H8

.

    MOVEFILE_CREATE_HARDLINK            = &H10

.

    MOVEFILE_FAIL_IF_NOT_TRACKABLE      = &H20

.
Documentation
[MoveFileFlags] on MSDN

shlwapi

.
Documentation
.
Documentation
.
Documentation
.

static extern bool PathRemoveFileSpec([In,Out] StringBuilder pszPath);

.

Declare Function PathRemoveFileSpec Lib "shlwapi.dll" (TODO) As TODO

.

bool bRet = PathRemoveFileSpec(str);

.
Documentation
.
Documentation

Delegates

.
Summary

 
Access PInvoke.net directly from VS: