Moves a directory and all sub-directories and files.
DirMove ( "source dir", "dest dir" [, flag] )
Parameter
| source dir | Path of the source directory (with no trailing backslash). eg. "C:\Path1" |
| dest dir | Path of the destination dir (with no trailing backslash). eg. "C:\Path_Copy" |
| flag | [optional] this flag determines whether to overwrite files if they already exist: 0 = (default) do not overwrite existing files 1 = overwrite existing files |
Bemerkungen
If the source and destination are on different volumes or UNC paths are used then a copy/delete operation will be performed rather than a move.
Siehe auch
DirRemove, FileMove
Beispiel
DirMove("C:\My Documents", "C:\Backups\MyDocs")