faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 17 people (65%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I copy a file using FSO?

Jul 17th, 2000 05:36
unknown unknown, Matthew Connor


Problem:

Let's say I want to copy a.mdb to b.mdb where the b.mdb resides in 
'backup' subdirectory.

Solution:

object.CopyFile "source", "destination"[, overwrite] 

If overwrite is set to true, it'll overwrite existing files, else it'll 
just create a new file.

source could be typed as "C:\inetpub\wwwroot\file1.htm"

same with destination.



© 1999-2004 Synop Pty Ltd