| Home | All functions | Categories |
vuCopy(*CSTRING,*CSTRING,LONG), Signed
Copies files from one location to another. Supports wildcards and optional subdirectory copying. Can copy across drives, including network drives.
Source applied to all subdirectories.Subdirs = 2 added to apply the mask to all subdirectories (UNCs not supported when using 2).| Parameter | Data Type | Description |
|---|---|---|
| Source | CSTRING(256) | Fully qualified path and filename (wildcards allowed) |
| Destination | CSTRING(256) | Fully qualified destination path. Created if it does not exist. |
| Subdirs | LONG | 0 = Do not copy subdirectories 1 = Copy all subdirectories and files 2 = Apply mask to all subdirectories (slower, UNCs not supported) |
1 (True) on success, 0 (False) on failure.
! Copy all files and subdirectories
Source = 'C:\Temp\*'
Destination = 'G:\Backup'
vuCopy(Source, Destination, 1)
! Copy only files without extensions
Source = 'C:\Temp\*.'
vuCopy(Source, 'C:\Backup', 0)
! Copy only .bak files, applying mask to subdirectories
Source = 'C:\Temp\*.bak'
vuCopy(Source, 'C:\Backup', 2)
Subdirs = 1 copies all files and subdirectories.Subdirs = 2 applies the mask to all subdirectories but disallows UNCs.| Home | All functions | Categories |