Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I want to know how can a program copy it self

pablo italy

Think you

change: himself to itself - Krunal
Posted
Updated 12-Dec-12 4:16am
v2
Comments
bbirajdar 12-Dec-12 10:26am    
I smell something fishy...Are you trying to write a virus ?
pablo ramos1 12-Dec-12 10:34am    
hi aspnet_regiis-i , no i'm not trying to write a virus, i'm developing in network
sorry because i'm bad in english
Killzone DeathMan 12-Dec-12 11:17am    
Just copy the executable file to the startup folder, and everytime the computer starts, the program will be execute by itself!
I mean copy the executable but dinamically per code!

1 solution

http://www.tek-tips.com/viewthread.cfm?qid=1066088[^]
or else
application.executablepath will give you the path of the application and on start up of it, you can use file.copy method...
 
Share this answer
 
v2
Comments
pablo ramos1 12-Dec-12 10:34am    
think you for help, i will see
Killzone DeathMan 12-Dec-12 11:24am    
thank for your help, i will see*
[no name] 12-Dec-12 22:08pm    
If you're satisfied with the given answer, Accept the Solution :)
Killzone DeathMan 12-Dec-12 11:24am    
5 stars Krunal
[no name] 12-Dec-12 21:49pm    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900