Jump to content

Every .exe I make is incompatable with windows

Lingrah

So this may be a noob question, but every time I create an .exe (I use notepad...) it gives me this message

12b220121b55fd053fd7e36896583dd8.png

So I try taking a working .exe on my computer, change it to a txt, open it, type a letter anywhere, remove it (so it is the exact same as before) and save, it then proceeds to give me the message!  So my question would be, how do I save/edit a .exe so it works?

Spoiler
Spoiler

Obligatory PC specs

CPU: Intel Core i5-6600K 3.5GHz
CPU Cooler: Corsair H50
Motherboard: Asus Z170-E ATX LGA1151
Memory: G.Skill Ripjaws 4 Series 16GB (2 x 8GB)
Storage: ADATA Premier SP550 240GB
Storage: Western Digital Blue 500GB
Storage: Western Digital BLACK SERIES 1TB
Video Card: Gigabyte GeForce GTX 1060 6GB 6GB G1
Case: Fractal Design Define S
Power Supply: Corsair CSM 550W

Spoiler
If you are new please read the CoC!

 Please FOLLOW YOUR OWN THREADS!


 Quote people when replying to them.


PLEASE SELECT 'AUTOMATIC' FOR FONT COLOR FOR DARK THEME USERS.


 Mark your problem as solved if answered and like all helpful information.


 DO NOT QUOTE IMAGES(!) just type -pic- or tag them as spoiler.


Don't criticize people for asking "stupid question".


There is actually a hidden search feature on the forums here: Search 


IT DOESN'T MATTER IF YOU'RE A FANBOY/FANGIRL. WHAT MATTERS IS THAT YOU DON'T LET THAT EFFECT YOUR HARDWARE RECOMMENDATIONS.


DO NOT POST SPAM!

Link to comment
Share on other sites

Link to post
Share on other sites

That's not how EXE files work. They need to be compiled using a compiler like Visual Studio or whatever they're calling it.

My rig: Intel Core i7-8700K OC 4.8 | NZXT Kraken X62 | ASUS Z370-F | 16 GB Trident Z RGB 3000 (2x8) | EVGA 1070 SC | EVGA SuperNova NEX650G1 | NZXT H700 | Samsung 250GB 850-EVO | 2x 2TB Seagate Barracuda HDDs 

Link to comment
Share on other sites

Link to post
Share on other sites

So this may be a noob question, but every time I create an .exe (I use notepad...) it gives me this message

12b220121b55fd053fd7e36896583dd8.png

So I try taking a working .exe on my computer, change it to a txt, open it, type a letter anywhere, remove it (so it is the exact same as before) and save, it then proceeds to give me the message!  So my question would be, how do I save/edit a .exe so it works?

I think you want to create a .bat or .cmd file instead. Are you creating a command-line script?

LTT's unofficial Windows activation expert.
 

Link to comment
Share on other sites

Link to post
Share on other sites

I think you want to create a .bat or .cmd file instead. Are you creating a command-line script?

I did end up creating what I originally wanted as a .cmd, but I am still curios how I get an .exe to work.

Spoiler
Spoiler

Obligatory PC specs

CPU: Intel Core i5-6600K 3.5GHz
CPU Cooler: Corsair H50
Motherboard: Asus Z170-E ATX LGA1151
Memory: G.Skill Ripjaws 4 Series 16GB (2 x 8GB)
Storage: ADATA Premier SP550 240GB
Storage: Western Digital Blue 500GB
Storage: Western Digital BLACK SERIES 1TB
Video Card: Gigabyte GeForce GTX 1060 6GB 6GB G1
Case: Fractal Design Define S
Power Supply: Corsair CSM 550W

Spoiler
If you are new please read the CoC!

 Please FOLLOW YOUR OWN THREADS!


 Quote people when replying to them.


PLEASE SELECT 'AUTOMATIC' FOR FONT COLOR FOR DARK THEME USERS.


 Mark your problem as solved if answered and like all helpful information.


 DO NOT QUOTE IMAGES(!) just type -pic- or tag them as spoiler.


Don't criticize people for asking "stupid question".


There is actually a hidden search feature on the forums here: Search 


IT DOESN'T MATTER IF YOU'RE A FANBOY/FANGIRL. WHAT MATTERS IS THAT YOU DON'T LET THAT EFFECT YOUR HARDWARE RECOMMENDATIONS.


DO NOT POST SPAM!

Link to comment
Share on other sites

Link to post
Share on other sites

If you want to edit binaries (for whatever reason), use a hex editor and not a text editor.


I did end up creating what I originally wanted as a .cmd, but I am still curios how I get an .exe to work.

By using a compiler.

Link to comment
Share on other sites

Link to post
Share on other sites

I did end up creating what I originally wanted as a .cmd, but I am still curios how I get an .exe to work.

 

You need to learn a language such as C# or C++ (there are many more out there), then use a program such as Visual Studio to code, build & compile your program into a .exe file that the processor can natively understand. EXE files cannot be edited in a text program. Highly skilled people (game modders etc) are able to decompile EXE files, but it is a long trial-and-error process.

 

It's probably better to stick to .bat/.cmd files. If you're making a small program it's not worth the effort trying to make an .exe out of it.

Speedtests

WiFi - 7ms, 22Mb down, 10Mb up

Ethernet - 6ms, 47.5Mb down, 9.7Mb up

 

Rigs

Spoiler

 Type            Desktop

 OS              Windows 10 Pro

 CPU             i5-4430S

 RAM             8GB CORSAIR XMS3 (2x4gb)

 Cooler          LC Power LC-CC-97 65W

 Motherboard     ASUS H81M-PLUS

 GPU             GeForce GTX 1060

 Storage         120GB Sandisk SSD (boot), 750GB Seagate 2.5" (storage), 500GB Seagate 2.5" SSHD (cache)

 

Spoiler

Type            Server

OS              Ubuntu 14.04 LTS

CPU             Core 2 Duo E6320

RAM             2GB Non-ECC

Motherboard     ASUS P5VD2-MX SE

Storage         RAID 1: 250GB WD Blue and Seagate Barracuda

Uses            Webserver, NAS, Mediaserver, Database Server

 

Quotes of Fame

On 8/27/2015 at 10:09 AM, Drixen said:

Linus is light years ahead a lot of other YouTubers, he isn't just an average YouTuber.. he's legitimately, legit.

On 10/11/2015 at 11:36 AM, Geralt said:

When something is worth doing, it's worth overdoing.

On 6/22/2016 at 10:05 AM, trag1c said:

It's completely blown out of proportion. Also if you're the least bit worried about data gathering then you should go live in a cave a 1000Km from the nearest establishment simply because every device and every entity gathers information these days. In the current era privacy is just fallacy and nothing more.

 

Link to comment
Share on other sites

Link to post
Share on other sites

executable files are created using compilers.

 

most you can do in notepad is create .bat files that use the command prompt commands with some logic functions (see an example here: http://linustechtips.com/main/topic/463597-wip-the-lazy-mans-all-in-one-batch-file-v002 )

Remember kids, the only difference between screwing around and science is writing it down. - Adam Savage

 

PHOΞNIX Ryzen 5 1600 @ 3.75GHz | Corsair LPX 16Gb DDR4 @ 2933 | MSI B350 Tomahawk | Sapphire RX 480 Nitro+ 8Gb | Intel 535 120Gb | Western Digital WD5000AAKS x2 | Cooler Master HAF XB Evo | Corsair H80 + Corsair SP120 | Cooler Master 120mm AF | Corsair SP120 | Icy Box IB-172SK-B | OCZ CX500W | Acer GF246 24" + AOC <some model> 21.5" | Steelseries Apex 350 | Steelseries Diablo 3 | Steelseries Syberia RAW Prism | Corsair HS-1 | Akai AM-A1

D.VA coming soon™ xoxo

Sapphire Acer Aspire 1410 Celeron 743 | 3Gb DDR2-667 | 120Gb HDD | Windows 10 Home x32

Vault Tec Celeron 420 | 2Gb DDR2-667 | Storage pending | Open Media Vault

gh0st Asus K50IJ T3100 | 2Gb DDR2-667 | 40Gb HDD | Ubuntu 17.04

Diskord Apple MacBook A1181 Mid-2007 Core2Duo T7400 @2.16GHz | 4Gb DDR2-667 | 120Gb HDD | Windows 10 Pro x32

Firebird//Phoeniix FX-4320 | Gigabyte 990X-Gaming SLI | Asus GTS 450 | 16Gb DDR3-1600 | 2x Intel 535 250Gb | 4x 10Tb Western Digital Red | 600W Segotep custom refurb unit | Windows 10 Pro x64 // offisite backup and dad's PC

 

Saint Olms Apple iPhone 6 16Gb Gold

Archon Microsoft Lumia 640 LTE

Gulliver Nokia Lumia 1320

Werkfern Nokia Lumia 520

Hydromancer Acer Liquid Z220

Link to comment
Share on other sites

Link to post
Share on other sites

You are essentially violating the sensitive stucture of .exe. All executable file types comply to some standard structure. Windows uses the Portable Executable format, it has multiple file extensions available than just exe. This format is the only one in windows (besides COM which is simple but ancient and obslete anyways), ELF is a standard on Linux (it has no actual file extension), well you get the idea I hope. They contain code and data compiled from some language by a compiler, the result is unreadable, but as mentioned you can disassemble it to some language (commonly just Assembly language, because compilers do optimizations and the original language disassembly will be nor readable nor equivalent to what you compiled from). You need to learn coding if you want to make such programs, you can in theory make a new one with a hex editor (like HxD), but that is unreasonably difficult and pointless, you can learn Assembly, it's as close to machine code as you can reasonably get, but it's no child's play to learn, you need to study computer architecture thoroughly. I suggest you learn the C language if you are interested in this stuff.

 

A quick google search and I found a little read if you're interested. If you unfamiliar with any low-level coding prepare to have your brain f****d. https://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files

 

This is a bit advanced, so I get if you don't understand anything, if so just start coding instead and read this sometime in the future.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×