Make a Self Copy Program Using VB.net
This Type of File Copy Can Be Seen on Automated Programs
Before Start Coding, You Must Get..
* Label Control
* Button Control
First, Write This Code on Form Load Event
Label1.Text = Application.ExecutablePath
Next, Write This Code on Command Button
FileCopy(Label1.Text, "C:\Kasun.exe")
FileCopy(Label1.Text, "C:\Kasun.exe")
Then, Launch The Programe & Click Command Button
Finally, You Can See New File as "Kasun.exe" on "C:\" & "D:\" Drives.
Having studied this article you will be able to understand behavior of Self Copy Program.
To Obtain More Details Click Here
Published By: Kasun Madhusanka
Before Start Coding, You Must Get..
* Label Control
* Button Control
First, Write This Code on Form Load Event
Label1.Text = Application.ExecutablePath
Next, Write This Code on Command Button
FileCopy(Label1.Text, "C:\Kasun.exe")
FileCopy(Label1.Text, "C:\Kasun.exe")
Then, Launch The Programe & Click Command Button
Finally, You Can See New File as "Kasun.exe" on "C:\" & "D:\" Drives.
Having studied this article you will be able to understand behavior of Self Copy Program.
To Obtain More Details Click Here
Published By: Kasun Madhusanka