-
December 9th, 2012, 08:42 PM
#1
join/bind 2 exe files
Can any one help me here
I want join 2 exe files together,create new file is = join of two.if I open new file then both should be excuited
But i am fail still
my code problem here
using System;
using System.Windows.Forms;
using System.IO;
namespace Bind
{
public class Bind
{
[STAThread]
private static void Main ()
{
string dir = Application.StartupPath + "\ \";
FileStream fs1 = File.OpenRead (dir + "1.exe");
FileStream fs2 = File.OpenRead (dir + "2.exe");
byte [] p1 = new byte [fs1.Length];
fs1.Read (p1, 0, (int) fs1.Length);
byte [] p2 = new byte [fs2.Length];
fs2.Read (p2, 0, (int) fs2.Length);
FileStream fs3 File.Create = (dir + "3.exe");
fs3.Write (p1, 0, p1.Length);
fs3.Write (p2, 0, p2.Length);
return;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|