9.0

167
FileCopy Instruction
Syntax
FileCopy FromName$, ToName$
Group
File
Description
Copy a file.
Parameter Description
FromName$ This string value is the path and name of the source file. A path relative to the
current directory can be used.
ToName$ This string value is the
p
ath and name of the destination file. A
p
ath relative to the
current directory can be used.
Example
Sub Main
FileCopy "C:\AUTOEXEC.BAT","C:\AUTOEXEC.BAK"
End Sub
FileDateTime Function
Syntax
FileDateTime(Name$)
Group
File
Description
Return the date and time file Name$ was last changed as a date value. If the file does not exist then a run-time
error occurs.
Parameter Description
Name$ This string value is the path and name of the file. A path relative to the current
directory can be used.
Example
Sub Main
F$ = Dir
$("*.*")
While
F$ <> ""
Debug
.Print F$;" ";FileDateTime(F$)
F$ = Dir
$()