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

Joaquim Miguel Jesus 1 Reputation point
2021-09-15T20:54:27.837+00:00

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 for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. MotoX80 37,156 Reputation points
    2021-09-16T01:39:49.537+00:00

    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 40,076 Reputation points
    2021-09-16T11:19:48.18+00:00

    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
    2021-09-16T19:09:50.57+00:00

    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 37,156 Reputation points
    2021-09-16T22:41:23.97+00:00

    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.