14
BATCH PROGRAMMING Created by Bichiko Kodua 16,12,2013

Batch programming

Embed Size (px)

Citation preview

Page 1: Batch programming

BATCH PROGRAMMING

Created by Bichiko Kodua

16,12,2013

Page 2: Batch programming

• What is batch programming?• Why we need to know this kind of programming

language?• Where we can use it?

Page 3: Batch programming

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.

Page 4: Batch programming

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++…

Page 5: Batch programming

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

Page 6: Batch programming

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

Page 7: Batch programming
Page 8: Batch programming
Page 9: Batch programming

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…

Page 10: Batch programming

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?

Page 11: Batch programming

• 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

Page 12: Batch programming
Page 13: Batch programming

• 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…

Page 14: Batch programming

THANKS FOR ATTENTION