# ShellFileOperation()

Author: SKAN Last Modified: 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 )

For more details of the functions's parameters and return value, please see it's source code or the document.

#### Remarks

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

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=133249#133249

#### License

nonexistent

#### Example

    ; #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