Make a script (program) to do following things.

Piyush Mhatre 21 Reputation points
2021-03-27T05:07:56.557+00:00

Hello

I have Windows 10 and I was facing keyboard problem in Turbo C++. "+" , "=" , etc keys were not working in Turbo C++.

So in order to solve this problem I have to do following steps :-

1) Open CMD as administrator

2) Run this command :- cd C:\TURBOC3\Turbo C++\DOSBox-0.74                    ..............[Press Enter]

3) Run this command :- set sdl_videodriver=windib
                                       dosbox.exe                                                                    .........................[Press Enter]  

4) Close CMD.

As you can see I have to do these following steps everytime I want to use the Turbo C++. So my question is that can I make a script or a programs that runs these steps when I run the program made by me.

For better understanding :-- Example :--- When I run Turbo C++ it opens dosbox, locate turbo.exe and runs it in dosbox actomatically and we are good to go. So my question is that how to make a program that runs the 4 steps I mentioned above automatically so I don't have to copy-paste and run this commands everytime. I hope you were able to understand my point ��. Thankyou. ��

Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
280 questions
0 comments No comments
{count} votes

Accepted answer
  1. Scout 541 Reputation points
    2021-03-29T19:39:24.633+00:00

    Hello Pi,
    here is an example of how a batch file can be called using Small Basic.
    The first thing to do is to import the demo with the ID: FSLM912.000.
    The program should be saved in any directory.

    82477-greeting2021.png

    The batch file Dir.dat must be created in this directory with a text editor. For example, the lines after the TYPE command from the following DOS box can be used.

    82552-batchfile.png

    After clicking on Batchfile a DOS box is opened and the commands of the Dir.bat file are executed. The DOS box closes automatically if the PAUSE command is not used at the end.
    All commands listed in the HELP of the DOS box should work.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.