FMoveDir - http://doc.windev.com
fMoveDir (Function)
In French: fRepDéplace
Moves the content of a directory into another directory.
Example
// Moving the content of a directory
// The content of the "C:\Directories\MyFiles" directory is moved
// into the "D:\Documents\FileCopy" directory
Res is boolean
Res = fMoveDir("C:\Directories\MyFiles", "D:\Documents\FileCopy", frRecursive)
IF Res = False THEN
Error(ErrorInfo(errMessage))
END
// The content of the "C:\Directories\MyFiles" directory is moved
// into the "D:\Documents\FileCopy" directory
Res is boolean
Res = fMoveDir("C:\Directories\MyFiles", "D:\Documents\FileCopy", frRecursive)
IF Res = False THEN
Error(ErrorInfo(errMessage))
END
Nenhum comentário:
Postar um comentário