Implemented in version 3.0
This method is used to move the file relating to the specified
object to a new destination.
It is recommended that you use the
method of the
object to determine if a file with the same name already exists in the destination location. If it does, and you attempt the
, you'll receive an error.
dim filesys, demofile
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofile = filesys.CreateTextFile ("c:\somefile.txt", true)
set demofile = filesys.GetFile("c:\somefile.txt")