Description
- Copies a randomly selected file to a specified file path.
Syntax
- File.CopyRandom(filepath, outfile)
Parameters
- filepath
- (string) path with wildcards
- outfile
- (string) destination for file copy
Examples
- File.CopyRandom(?"c:\pictures\*.bmp", ?"c:\logo.sys")
- Copies a random .bmp file from the directory "c:\pictures" over the Windows startup screen file. (Windows 95/98/ME)
See Also
- PowerPro Help CHM > Built-in Commands > *File > Working with a randomly selected file