Converting a bat file to an exe file in Windows XP embedded

Posted on 2008-10-27
Medium Priority
Last Modified: 2013-12-13
I'm trying to make a bat file an executable file on a windows xp embedded machine.

I used bat2exe but it reports a missing CRTDLL.dll no doubt due to the fact that it is XP embedded.

Anyone know of any other compilers that might work or am I screwed?
Question by:deathbybatfile
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 22813816
can't you register the dll?

Author Comment

ID: 22813896
I have thousands of computers to sort out remotely and I don't have the standard access that you might from the head end server. They basically play media content and I can include my bat file (to change some settings) and run it as an executable behind the media but it has to be an .exe file. The company we use have us over a barrel and are trying to charge an arm and a leg for this task.

Expert Comment

ID: 22813938
can't you make the exe on your machine and deploy it afterwards?
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Author Comment

ID: 22813987
That's what I did but I get the same error when I try and run the executable - it obviously needs the file to decompile and run i guess.

Accepted Solution

maze-uk earned 2000 total points
ID: 22814088
option 1: try an alternative to 'bat2exe' that would include any library

(PS: the missing Dll is a MS C runtime component...)

Option 2: you will have to copy and register the dll (and why not your exe) at the same time then write the conf on your clients
LVL 38

Expert Comment

ID: 22814205
You might try making a self-extracting archive with iexpress.exe which is included with Windows 2000 and up.  Here's a walkthrough:

You can also do this with compression using 7-Zip.

For instructions, open the Help file, expand Command Line Version|Switches and select -sfx (Create SFX archive).

I haven't tested either of these methods with XP Embedded, but I don't know of any reason they wouldn't work.

Author Comment

ID: 22849538
Thanks for the input guys. I eventually a program called Quick Batch File Compiler which allowed me to make an executable that placed the needed dll - so I'm sorted thanks.

Author Closing Comment

ID: 31510360

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question