Share via

Windows XP: how add an automatic application on cmd.exe?

Joaquim Miguel Jesus 1 Reputation point
Sep 15, 2021, 8:54 PM

i have a MS-DOS sound driver emulator.
when i execute the CMD.exe, i must execute\use that sound driver command.
when i execute a MS-DOS game, the CMD.exe is executed before execute the game... so how can i attack that CMD command automatic, when the CMD.exe is executed?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,862 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. MotoX80 34,761 Reputation points
    Sep 16, 2021, 1:39 AM

    When you launch the game you are probably clicking on a shortcut that points to a .bat or .cmd file. That will cause cmd.exe to launch and execute the commands in the .bat file. You need to edit the .bat file with Notepad and add in the command to launch the emulator before it launches the .exe for that game you are trying to play.

    0 comments No comments

  2. Limitless Technology 39,731 Reputation points
    Sep 16, 2021, 11:19 AM

    Hi there,

    It seems you must make corrections to the.bat file and add it to the executable file as when you click the game the .bat files are executed with the Help of the CMD only, so the only way would be to add the Sound emulator to the .exe via the bat file so that it can execute along with the game.

    Hope this answers all your queries, if not please do repost back.
    If an Answer is helpful, please click "Accept Answer" and upvote it : )

    0 comments No comments

  3. Joaquim Miguel Jesus 1 Reputation point
    Sep 16, 2021, 7:09 PM

    i'm confused: how can i connect the bat file to cmd?
    when the cmd\game is executed, that bat must be executed

    0 comments No comments

  4. MotoX80 34,761 Reputation points
    Sep 16, 2021, 10:41 PM

    i'm confused: how can i connect the bat file to cmd?

    Unless you've changed the defaults on your PC, you don't need to do anything. A .bat file is a series of commands that are processed by the command interpreter, cmd.exe.

    https://www.bing.com/search?q=windows+what+is+a+bat+file

    Here I am using the Explorer to look at a bat file. If I right click and select Edit, it launches notepad.exe to allow me to view and update the file contents.

    If I double click on the bat file, it will launch cmd.exe to process the commands in the file.

    132873-capture.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.