Results 1 to 7 of 7

Thread: Copying a file

  1. #1

    Thread Starter
    Frenzied Member mxnmx's Avatar
    Join Date
    Dec 2001
    Location
    I'm back...now!!!
    Posts
    1,396

    Copying a file

    If I want to write a program that copies an already existing file on PC's Hardrive and save it to a folder. The folder also should be automatically created. How is this possible? Please help!!!

  2. #2
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    I believe the functions you'll need are:
    mkdir
    filecopy

  3. #3
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    u will need more than that because you will ave to check if the folder is aready there before you create it i think a FSO will do better

  4. #4
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    you dont have to use fso's (even though i love them!) to see if a directory exists, you can use the Dir$ function
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  5. #5
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    Originally posted by darre1
    you dont have to use fso's (even though i love them!) to see if a directory exists, you can use the Dir$ function
    LOL ya i lkie them 2 ....ya that is true also...just i think FSO's are easier

  6. #6
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Baltimore,MD
    Posts
    536

    Talking What is a fso

    What is a fso?
    Walter Richardson
    Striver2000 Christian Productions
    Iam seventeen but since I started VB in June of 01 GOD has been helping me excell by finding this great forum with a bunch of GREAT PEOPLE!

  7. #7
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    fso = FileSystemObject

    dll = Microsoft Scripting Runtime

    easy of use = doddle

    smiley rating =
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

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