943,427 Members | Top Members by Rank

Ad:
Sep 25th, 2004
0

Programming .exe files directly

Expand Post »
Is it possible to open notepad and type some gibberish and save it as a .exe file and run it? :mrgreen:
Similar Threads
Reputation Points: 15
Solved Threads: 1
Junior Poster
chound is offline Offline
143 posts
since Aug 2004
Sep 25th, 2004
0

Re: Programming .exe files directly

Can we write machine level code directly??
Reputation Points: 15
Solved Threads: 1
Junior Poster
chound is offline Offline
143 posts
since Aug 2004
Sep 25th, 2004
0

Re: Programming .exe files directly

>Is it possible to open notepad and type some gibberish and save it as a .exe file and run it?
If you want to work out the machine code for your system that would be equivalent for a properly assembled executable, then figure out what combination of keyboard characters will give you that machine code...I suppose it might be possible to do this if Notepad doesn't add anything in the process of saving the file as an executable.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Sep 25th, 2004
0

Re: Programming .exe files directly

Not in Notepad, no. In a hex editor, maybe with a ton of patience. But an exe generally has a header record and sections with headers before them and the like. Try using DUMPBIN on a small exe and see how much crud is in there.

Using a hex editor you could modify an existing exe, but even that would take more patience than its worth.

That's why the compilers were invented, after all!
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Oct 6th, 2004
0

Re: Programming .exe files directly

Quote originally posted by Chainsaw ...
Not in Notepad, no. In a hex editor, maybe with a ton of patience.
Does Windows filter the input so much that typing ALT+(ASCII) codes won't produce the right results?

*Nuez goes to check.

Yeah, guess it does. :rolleyes:
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Nuez_Jr is offline Offline
18 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Is there a program that creates DFA from expression
Next Thread in Computer Science Forum Timeline: Math/computerscience Log Problem- Helpppp





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC