Results 1 to 12 of 12

Thread: Making vb copy its self

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    87

    Making vb copy its self

    How about would i make my program copy its self in a file i want it in for in the code thanks

  2. #2

    Wink wazzzup

    i dunno man, but have you figured out that statup code yet?
    The Gemini

  3. #3
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904

    Re: Making vb copy its self

    Originally posted by WalMart4Life
    How about would i make my program copy its self in a file i want it in for in the code thanks
    perhaps if you could explain what you want in a more coherent manner, someone might be able to figure out how to help you

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    87
    Ok my program in VB6 pro i need it to make a copy of its self so then their is 2 exe files, in to a folder that i chose how would i do this thanks

  5. #5
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Use a Filecopy routine.

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    as BrainS said

    VB Code:
    1. Private Sub Command1_Click()
    2.     FileCopy App.Path & "\" & App.EXEName & ".exe", App.Path & "\" & "test.exe"
    3. End Sub
    -= a peet post =-

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    This is in the help of VB :

    If you try to use the FileCopy statement on a currently open file, an error occurs.


    Has someone helped you? Then you can Rate their helpful post.

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    so I thought.... until i tried the above
    -= a peet post =-

  9. #9
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    San Jose, Ca. - USA
    Posts
    302
    has anybody looked at WalMart4Life's other questions.

    I'm assuming he's creating a worm or trojan.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    87
    umm no that **** is gay

  11. #11
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by peet
    so I thought.... until i tried the above
    Hmmm, the help was of VB5... Maybe it is improved in 6


    Has someone helped you? Then you can Rate their helpful post.

  12. #12
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Originally posted by frigginjerk
    has anybody looked at WalMart4Life's other questions.

    I'm assuming he's creating a worm or trojan.
    He's just writing a program which runs at start up and every hour after that, changing your homepage and propogates itself.
    Next question how do I read a users address book

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