You are here

Good Bat to Exe coverter

5 posts / 0 new
Last post
ozbodd
Offline
Last seen: 16 years 1 week ago
Joined: 2007-02-22 15:12
Good Bat to Exe coverter

Anyone recommend a free Bat to Exe converter that also alows setting the icon?

Tried a couple that are limited.

Thanks

John Bentley
John Bentley's picture
Offline
Last seen: 15 years 3 months ago
Developer
Joined: 2006-01-24 13:26
To set the icon use resource

To set the icon use resource hacker.

cowsay Moo
cowthink 'Dude, why are you staring at me.'

ozbodd
Offline
Last seen: 16 years 1 week ago
Joined: 2007-02-22 15:12
Yeah I have tried that but

Yeah I have tried that but the two programs I have for making the exe are OK but reshacker doesn't work on the icon(??) Unless I am doing something else wrong. I have tried making icons using icofx

/*EDIT*/
The error I get is

'This file has a non-standard resoure layout... It has probably been compressed with an "EXE compressor"'.

/**********/

I use

Bach2exe converter & Batchcompiler

/**************/
Sorted!
http://www.hollmen.dk/articles/batch.htm
/**************/

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
I didn't check this, but

I didn't check this, but there's a solution that should work. These converters have stubs they attach a bat to. Try to change the icon in the stub and then compile. How to find a stub?
1. You can try to extensions of all .bin and other unknown files to exe - You'll see an icon on the stub.
2. Take a look inside with hex editor - the stub will contain "This program cannot be run in DOS mode." string not far from it's begin.
3. Use TrID - a great tool to identify files by their content. The stub will be a win32 executable.

EDIT: I missed the fact that you gave the solution already :oops:
But the thing I said allows you to change the default icon.
The stub is not a separate file, it's built into the Batch Compiler's executable.
Steps:
1. Decompress BatchCompiler.exe with UnAspack.
2. With ResHacker (or a similar prog.)extract ID_1.exe from RawData resources.
3. Decompress it with UnAspack.
4. Change it's icon.
5. If you want to, compress it again.
6. Replace the old ID_1.exe with the new one.
7. If you want to, compress BatchCompiler.exe again.

2ozbodd:
Does the batch2exe work for you?
From what I see, it should generate smaller and MUCH faster executables, because it really compiles the exe, doesn't only wrap it's code to the stub. But it's not working here.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

ozbodd
Offline
Last seen: 16 years 1 week ago
Joined: 2007-02-22 15:12
No not for me either - Get

No not for me either - Get invalid W32 applications all the time.

Log in or register to post comments