FileOps - Copy | Move | Delete | Rename (with Win32 progress bar) - 2022/11/12 - beta.15
Posted: 18 May 2021, 08:32
File Copy, Delete, Rename, Move with default Win32 progress dialog.
Links: Usage:
Links: Usage:
- obj := FileOps() to make an instance.
- obj.Copy(src, dest [, no_confirm := false])
- obj.Rename() & obj.Move() same as above
- obj.Delete(src [, no_confirm := false])
- Adjustments for Unicode/ANSI and x86/x64
- no_confirm := true acts as "overwrite" on Copy action.
- Flags can be set directly by one of the following:
- obj.Flags := 0x1234
- obj.FlagStr := "flag_name flag_name ..."
- obj.error contains error codes on return. Non-zero = an error.
- obj.abort contains abort codes in case of user/system aborting the action.
- Long paths are only supported in theory. My tests indicate it doesn't work.
- Setting ProgressTitle doesn't seem to work. The default title is more useful anyway.
- I don't plan to implement any class solutions for WantMappingHandle for now.
- Wildcards are not allowed in the directory name, an error will be thrown.
- All relative paths are assumed to be relative to A_ScriptDir and are converted to fully qualified paths before execution.
- All flags are reset after execution. This is done to prevent unexpected/dangerous results related to mismanagement of flag values.
- If you set flags manually, then the no_confirm parameter is ignored.
Updates
=================================================================================