Results 1 to 3 of 3

Thread: A question about FileCopy

  1. #1
    Guest
    I'm not having any luck with this one. I tried this line:
    FileCopy("c:\autoexec.bat", "c:\desktop\autoexec.bat")
    Visual Basic returns an error saying "Expected: =". The help doesn't make it look like there should be anything returned. What am I doing something wrong? Thanks.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    Remove the ()'s from the statement, or put Call in front of the statement. Whenever you include the ()'s vb expects that there is going to be a value returned and makes you assign the return value to a var.

  3. #3
    Guest
    Thank you very much. I had been wondering for some time why some things had the parentheses and others didn't. I never new. Now it works like a charm.

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