Batch programming is a simple programming language that allows users to automate tasks on Windows systems. It has the advantage of being easy to create programs with compared to languages like C++ and Java. Batch files can be used to automate installations, schedule tasks, and perform other repetitive functions. Common uses of batch programming include creating installation scripts, setting up scheduled tasks to run programs weekly or daily, and automating shutdown functions. The document provides examples of basic batch programming code to schedule a weekly task and automatically shut down the computer after startup without permission.
2. • What is batch programming?
• Why we need to know this kind of programming language?
• Where we can use it?
3. WHAT IS BATCH PROGRAMMING?
• First of all,batch has no his graphical mode but it is very simple to create
batch file, because it creates everywhere where you can type letters…
Just all you need to know is to save it as batch format and nothing more.
4. WHY WE NEED TO KNOW THIS KIND OF
PROGRAMMING LANGUAGE?
• This prgoramming language has no the same abilitys as C++ or Java and so
on but this language works at windows platform this is very huge plus and it is
very easy to make installation programs ,task schedulers in the batch mode
and very hard to do same in java or C++…
5. WHERE WE CAN USE IT?
• Imagine that we create some kind of programe, the first step is done but
than we also need to sort out installing problem So installation process is
exactly batch programming
6. It is an example how to create a simple task to run our scan program weekly in
every Monday at 12 o’clock…
SCHTASKS /Create /SC WEEKLY /D SUN /TN SCANNER /TR name.exe /ST
12:00 /ET 14:00
7.
8.
9. Windows has command line where we
can type commands .The syntax is
same, all CMD commands work in
batch program but all batch command
does not work in command line…
10. HOW TO MAKE BAD PROGRAMS
IN BATCH FILE
There are many kind of such programs and now I am going to show you a one.
For example: we want to create a programme which shutdowns computer at
start up without permition in about 10 seconds…So what we should do?
11. • Start notepad
• Type the code which will shutdown the computer
• Save it as a bat format
• Start again notepad
• Type the code to copy first programe in the start up folder and it’s done
12.
13. • Batch programming has lot of abilitys and it is imposible to say everything in
15 minutes… So if you want to improve your knowledge in batch
programming you can type command “help” in CMD which helps you to do
basic tasks…