Click to See Complete Forum and Search --> : How to copy a file selected from CommonDialog to a destination?


kevin shen
May 2nd, 2001, 06:03 PM
How to copy a file selected from CommonDialog to destination?
I try to use
FileSystemObject.copyfile CommonDialog1.filename, DestinationPath




But it's not working.

Thanks!

Best Regards,

Kevin Shen

shree
May 2nd, 2001, 07:08 PM
If the file is not currently open, you can use the FileCopy statement.

FileCopy CommonDialog1.filename, DestinationPath

kevin shen
May 2nd, 2001, 07:31 PM
Do you know how to set startpath of the Open CommonDialog?


Thanks!

Best Regards,

Kevin Shen

shree
May 2nd, 2001, 07:46 PM
CommonDialog1.InitDir = "c:\my documents"