CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: FileCopy

  1. #1
    Join Date
    Jan 2000
    Posts
    45

    FileCopy

    how do i copy the exe file to a location like:
    filecopy app.path, "C:\WINDOWS\All Users\Desktop\whatever.exe"
    but that doesn't seem to work, because i am going this so the user can copy the file where ever he downloaded it to.


  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: FileCopy

    First of all, your app.path is something like "C:\windows\desktop" without file name so you need to change it to app.path + "\appname.exe"
    Second is that you trying to copy to an invalid location....you can't copy to a file, you can only copy to a folder or drive...Example: "C:\WINDOWS\All Users\Desktop"


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