Results 1 to 2 of 2

Thread: COPYING AND RUNNING STUFF

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    1
    I got away from VB for a while, and I can't remember how to copy a file from place to place in a VB program. Also I can't remember how to run an independent program in a vb program. Can anyone help?
    CERC

  2. #2
    Hyperactive Member jeba's Avatar
    Join Date
    Feb 2000
    Posts
    265

    Hope this helps

    Hi CERC!
    Welcome back!

    This is the command to copy a file.

    Filecopy sourcefile, destinationfile

    eg,

    Filecopy "c:\test1.txt", "c:\test2.txt"

    I dont fully understand the second question, anyway I 'll try.

    To run an app, use the Shell command with the pathname.

    for eg,

    Shell "c:\windows\calc.exe", vbNormalFocus

    Hope this is what u mean,
    Jebs.

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