Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 984841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:04:35+00:00 2026-05-16T05:04:35+00:00

I want to know simply how to create a batch file from .exe file?

  • 0

I want to know simply how to create a batch file from .exe file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:04:36+00:00Added an answer on May 16, 2026 at 5:04 am

    If you mean you want to create a new batch file from an unrelated existing executable file (in other words, the batch file does something different), you do it the way you create any file. In C, you’d use fopen, fwrite and fclose to create your new file and write whatever batch file commands you want to it.

    If you mean you want to create a batch file that “intercepts” your exe file, you can do that too. If your executable file is pax.exe, you can simply rename it to pax2.exe and create a batch file called pax.cmd thus:

    @echo off
    pax2.exe
    

    This will allow you to do arbitrary actions before and after your executable runs but there are things to watch out for such as executables that return control before they’re actually finsihed.

    If, however, you’re talking about converting an arbitrary executable into a batch file that performs the same task, that’s much more difficult. Unless you have the source code or a very good specification on how the executable works, you’re going to have a lot of trouble.

    Automating the conversion for anything but the simplest executable will be insanely difficult.


    And, if you want a link to a batch file that runs your executable, just create the batch file (say in c:\bin\pax.cmd) containing:

    @echo off
    c:\bin\pax.exe
    

    and then create a shortcut to it from wherever you want (such as the desktop). You could even put the batch file itself in your desktop directory but I’m not a big fan of that. However, to each their own.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how to open and manipulate a simple image file in
I have one problem in which i simply want to know how i can
I want to create a script that will set the file associations for mostly
I want to write batch file for my own php framework. for example i
i want to know which parsing method is best to use among Simple XML
I am having a simple code where i want to know when does onRestoreInstanceState
I know, I am asking very simple and stupid question but i want to
i want know how i can manage multiple twitter account on iOS in my
i want know if is possible, to get a specific element value of a
please help me. I want know about what types of flags to run an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.