vuUnpack(FileName, Directory)
vuUnPack(*CSTRING,*CSTRING), Signed
Description
Unpacks the contents of a packed file created with vuPack() and saves the individual files into the specified directory.
Parameters
| Parameter |
Data Type |
Description |
| FileName |
CSTRING(256) |
Fully qualified path and name of the packed file. |
| Directory |
CSTRING(256) |
Fully qualified path of the directory to unpack files into. |
Returns
A LONG value containing the number of files successfully unpacked.
Example
FileName = 'C:\transport\PackedTPS.val'
Directory = 'C:\Valutilities'
Count = vuUnpack(FileName, Directory)
MESSAGE(CLIP(Count) & ' files were unpacked to ' & Directory)
Notes
- If you used
vuCompress() after packing, run vuUncompress() before calling vuUnpack().
- Destination directory must exist or the call may fail.
- The unpacked files retain their original names inside the specified directory.