NeO HackeR

i want to knw if its posible to create a exe file which can copy its slf to an spesific directory or copy its slf randomly




Re: Visual C# General Self Copying file ?!?!?! is that posible

nobugz

There are few legitimate reasons for self-replicating programs. It is best to leave the user in control what program gets copied where.





Re: Visual C# General Self Copying file ?!?!?! is that posible

Ramgopal

actualy i want to create an exe file wen exeucted mus copy its slf to spesific directries is tat posible if yes how is tat




Re: Visual C# General Self Copying file ?!?!?! is that posible

Figo Fei - MSFT

Hi, Ramgopal

Just as nobugz said, it is not a good practise to do so.

However, if you insist, it is possible to do so via File.Copy(SelfPath, DestFilePath); (using System.IO namespace)

Thanks






Re: Visual C# General Self Copying file ?!?!?! is that posible

NeO HackeR

thanks a lot for ur hlp . I jus wanted knw if it was posible i shal avoid usein it to the max level