How about would i make my program copy its self in a file i want it in for in the code thanks
Printable View
How about would i make my program copy its self in a file i want it in for in the code thanks
i dunno man, but have you figured out that statup code yet?
perhaps if you could explain what you want in a more coherent manner, someone might be able to figure out how to help youQuote:
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
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
Use a Filecopy routine.
as BrainS said
VB Code:
Private Sub Command1_Click() FileCopy App.Path & "\" & App.EXEName & ".exe", App.Path & "\" & "test.exe" End Sub
This is in the help of VB :
Quote:
If you try to use the FileCopy statement on a currently open file, an error occurs.
so I thought.... until i tried the above :)
has anybody looked at WalMart4Life's other questions.
I'm assuming he's creating a worm or trojan.
umm no that **** is gay
Hmmm, the help was of VB5... Maybe it is improved in 6 :confused:Quote:
Originally posted by peet
so I thought.... until i tried the above :)
He's just writing a program which runs at start up and every hour after that, changing your homepage and propogates itself.Quote:
Originally posted by frigginjerk
has anybody looked at WalMart4Life's other questions.
I'm assuming he's creating a worm or trojan.
Next question how do I read a users address book ;)