Sunday 15 February 2015

Program that self replicates!

for (int i = 1; i <= 5; i++)
{
    string path= Application.ExecutablePath;
    exec = path.Insert(path.IndexOf("."), i.ToString());
    File.Copy(Application.ExecutablePath, path);
    Process.Start(path);
}

Write this code in Form_Load event , and it will replicate itself infinely.....

No comments:

Post a Comment