CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    California
    Posts
    264

    How to copy a file selected from CommonDialog to a destination?

    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
    Best Regards,

    Kevin Shen

  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: How to copy a file selected from CommonDialog to a destination?

    If the file is not currently open, you can use the FileCopy statement.

    FileCopy CommonDialog1.filename, DestinationPath


  3. #3
    Join Date
    Aug 1999
    Location
    California
    Posts
    264

    Re: How to copy a file selected from CommonDialog to a destination?

    Do you know how to set startpath of the Open CommonDialog?


    Thanks!

    Best Regards,

    Kevin Shen
    Best Regards,

    Kevin Shen

  4. #4
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: How to copy a file selected from CommonDialog to a destination?

    CommonDialog1.InitDir = "c:\my documents"


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured