Results 1 to 2 of 2

Thread: FileCopy

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    I'm trying to copy files using the following code, but it doesn't work.

    Dim FmPath As String
    FmPath = "E:\progs\vb5\projekter\filemanager\setup\filer"
    lblFil.Caption = DestDir & "\" & "comctl32.ocx"
    FileCopy FmPath & "\" & "comctl32.ocx", DestDir & "\" & "comctl32.ocx"


    ------------------
    Yours sincierly
    CyberCarsten
    http://home18.inet.tele.dk/cyber/
    [email protected]

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Is DestDir defined as a string? Does the file "E:\progs\vb5\projekter\filemanager\setup\filer\comctl32.ocx" exist? If both are true then it should work. If it doesn't please describe what goes wrong. Do you get an error? Does it seem like nothing happens?


    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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