Implemented in version 2.0
This method lets us move one or more files from one location ( the source) to another (destination). Wildcards can be used within the
string, providing it is the last component in the path, to enable the moving of multiple files, but cannot be used in the
string. Note that if the
does contain wildcards, or if the
ends with a back-slash (path separator), it is automatically assumed that the
is an existing folder and any matching files are moved to it.
It is recommended that you use the
method when moving a file - if a
file doesn't exist you'll get an error. An error also occurs if the
is a directory or an existing file.
If filesys.FileExists("c:\sourcefolder\anyfile.html") Then
filesys.MoveFile "c:\sourcefolder\anyfile.html", "c:\destfolder\"
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.