# ShellFileOperation()

作者: SKAN 最近更新时间: 20070705

A shell function that can be called to Copy / Move / Delete / Rename File(s). Displays an animated progress bar if the task is time consuming. Progress bar is useful when operating on slower media like Digital Cameras or when dealing with huge files like video.

ShellFileOperation( fileO=0x0, fSource="", fTarget="", flags=0x0, ghwnd=0x0 )

关于函数的参数和返回值, 请参阅其源码或 此文档.

#### 备注

The documentation is the whole posting of SKAN`s description of this function.
Here is a customized version by Rapte_Of_Suzaku: http://www.autohotkey.com/forum/viewtopic.php?t=55706
MSDN: http://msdn.microsoft.com/en-us/library/ms647743.aspx

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=133249#133249

#### 许可

不存在

#### 示例

    ; #Include ShellFileOperation.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    ShellFileOperation( 0x2, A_AhkPath, A_DeskTop )                     ; Copy a Single file
    ShellFileOperation( 0x2, "C:\Program Files\AutoHotkey", A_DeskTop ) ; Copy the whole folder