Forum: Ruby Binding/merging files

D1ed557f93bee22e8ef030791ef2191e?d=identicon&s=25 Mathias Frensen (ravensden)
on 2014-08-16 02:21
Hi
I'm continuing a little "fun-project" for a friend.
Project is entirely made in Ruby, and therefore I was hoping this was
achievable within Ruby too.

Is it possible for Ruby to take 2 executables (.exe files) and bind them
together. I know there will be issues executing the files, but that is
not That important at this state. I've done quite some extensive
searching, but so far that hasn't yielded anything useful.

Is this possible in Ruby?
54404bcac0f45bf1c8e8b827cd9bb709?d=identicon&s=25 7stud -- (7stud)
on 2014-08-20 20:14
File.open('combined.exe', 'w') do |f|
  f1 = File.read('prog1.exe')
  f2 = File.read('prog2.exe')
  f.write(f1 + f2)
end
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.