اﻟﺪرس اﻻول:ﻣﺎھﻮ اﻟﺪوسDOS؟وﻣﺎھﻲ اﻟﻤﻠﻔﺎت اﻟﺪﻓﻌﯿﺔBatch Files ؟

ﺳﻮف ﻧﺒﺪأ ﺑﺎذن اﷲ ﺗﻌﺎﻟﻲ اﻟﺪورة اﻟﺘﺎﻟﯿﺔ واﻟﺘﻲ ھﻲ ﺑﻌﻨﻮان ﺗﻌﺮف ﻋﻠﻲ ﻓﯿﺮوﺳﺎت اﻟﺪوس او ﻓﯿﺮوﺳﺎت اﻟﻤﻠﻔﺎت اﻟﺪﻓﻌﯿﺔ او Batch Files Viruses ﻛﻠﮫﺎ اﺳﻢ واﺣﺪ وﺳﻮف ﻧﺘﻌﺮف ﻋﻠﯿﮫﺎ وﻛﯿﻔﯿﺔ ﻛﺘﺎﺑﺘﮫﺎ وﻟﻜﻦ ﻗﺒﻞ اﻟﺨﻮض ﻓﻲ اي ﺷﺊ ﺳﻮف ﻧﺘﻌﺮف اوﻻ ﻋﻠﻲ ﻧﻈﺎم اﻟﺘﺸﻐﯿﻞ اﻟﺪوس.

اﻟﺪوس:- ھﻮ ﻣﺠﻤﻮﻋﻪ ﻣﻦ اﻻواﻣﺮ واﻟﺘﻌﻠﯿﻤﺎت اﻟﺘﻲ ﺗﺘﺤﻜﻢ ﻓﻲ ﻣﻜﻮﻧﺎت اﻟﺤﺎﺳﺐ اﻻﻟﻲ وھﻮ ﻳﻌﺘﺒﺮ ﺣﻠﻘﺔ اﻟﻮﺻﻞ ﺑﯿﻦ اﻟﻜﻤﺒﯿﻮﺗﺮ واﻟﻤﺴﺘﺨﺪم. ﺗﻨﻘﺴﻢ اواﻣﺮ اﻟﺪوس اﻟﻲ ﻗﺴﻤﯿﻦ:- ١. اﻻواﻣﺮ اﻟﺪاﺧﻠﯿﺔ:- وھﻲ اﻻواﻣﺮ اﻟﺘﻲ ﻳﺘﻢ ﺗﺤﻤﯿﻠﮫﺎ اﻟﻲ ذاﻛﺮة اﻟﺮام اﺛﻨﺎء ﺗﺸﻐﯿﻞ اﻟﺠﮫﺎز وﻳﺘﻢ ﺗﻨﻔﯿﺬھﺎ ﻣﻦ اﻟﺬاﻛﺮة ﺑﻤﻌﻨﻲ ان ھﺬا اﻟﻨﻮع ﻣﻦ اﻻواﻣﺮ ﻻﻳﺴﺘﻠﺰم وﺟﻮد اﺳﻄﻮاﻧﺔ ﻟﺘﻨﻔﯿﺬة وﻣﻦ اﻻﻣﺜﻠﺔ ﻟﻼواﻣﺮ اﻟﺪاﺧﻠﯿﺔ: , , TIME, DATE, MD, , RD, … ٢. اﻻواﻣﺮ اﻟﺨﺎرﺟﯿﺔ:- وھﻲ اﻻواﻣﺮ اﻟﺘﻲ ﻻﻳﺘﻢ ﺗﺤﻤﯿﻠﮫﺎ اﻟﻲ ذاﻛﺮة اﻟﺮام اﺛﻨﺎء ﺗﺸﻐﯿﻞ اﻟﺠﮫﺎز ﻣﻤﺎ ﻳﺘﻄﻠﺐ وﺟﻮد اﺳﻄﻮاﻧﺔ ﻟﺘﻨﻔﯿﺬة وﻣﻦ اﻣﺜﻠﺔ ھﺬه اﻻواﻣﺮ: , , , , SYS, EDIT …

وﺗﻨﻘﺴﻢ اواﻣﺮ اﻟﻨﻈﺎم اﻟﺪاﺧﻠﯿﺔ واﻟﺨﺎرﺟﯿﺔ اﻟﻲ ﺳﺘﺔ اﻧﻮاع:- ١. اواﻣﺮ اﻟﻨﻈﺎم:- MEM, DATE, , DOSKEY, PROMPT, CLS, COMMAND, TIME ….. ٢. اواﻣﺮ اﻻﺳﻄﻮاﻧﺔ:- SCANDISK, CHKDSK, FORMAT, DISKCOPY, SYS, , UNFORMAT, …. ٣. اواﻣﺮ اﻟﻔﮫﺮس:- DIR, CD, RD, MD, , …. ٤. اواﻣﺮ اﻟﻤﻠﻔﺎت:- , DEL, PRINT, TYPE, EDIT, XCOPY …. ٥. اواﻣﺮ اﻟﺤﺰم ٦. اواﻣﺮ ﺧﺎﺻﺔ

ھﺬا ﺑﺎﺧﺘﺼﺎر ﺷﺪﻳﺪ ﺗﻌﺮﻳﻒ ﻧﻈﺎم اﻟﺪوس وﺳﻮف اﻋﺮض ﻟﻚ ﺟﻤﯿﻊ اواﻣﺮ اﻟﺪوس:-

ASSOC èDisplays or modifies file extension associations. è Schedules commands and programs to run on a computer. ATTRIBè Displays or changes file attributes. BREAKè Sets or clears extended CTRL+C checking. CACLSè Displays or modifies access control lists (ACLs) of files. CALL è Calls one batch program from another. CD è Displays the name of or changes the current directory. CHCPè Displays or sets the active code page number. CHDIR è Displays the name of or changes the current directory. CHKDSK è Checks a disk and displays a status report. CHKNTFSè Displays or modifies the checking of disk at boot . CLS è Clears the screen. CMD è Starts a new instance of the Windows command interpreter. COLORè Sets the default console foreground and background colors. COMP è Compares the contents of two files or sets of files. COMPACT è Displays or alters the compression of files on NTFS partitions. è Converts FAT volumes to NTFS. You cannot convert the current drive. COPY è Copies one or files to another location. DATE è Displays or sets the date. DEL è Deletes one or more files. DIR è Displays a list of files and subdirectories in a directory. DISKCOMP èCompares the contents of two floppy disks. DISKCOPYè Copies the contents of one to another. DOSKEY è Edits command lines, recalls Windows commands, and creates macros. è Displays messages, or turns command echoing on or off. ENDLOCALè Ends localization of environment changes in a batch file. ERASE è Deletes one or more files. è Quits the CMD.EXE program (command interpreter.( FC è Compares two files or sets of files, and displays the differences between them. è Searches for a text string in a file or files. FINDSTRè Searches for strings in files. FOR è Runs a specified command for each file in a set of files. FORMAT è Formats a disk for use with Windows. è Displays or modifies file types used in file extension associations. GOTO è Directs the Windows command interpreter to a labeled line in a batch program. GRAFTABLè Enables Windows to display an extended character set in graphics mode. è Provides Help information for Windows commands. IF è Performs conditional processing in batch programs. è Creates, changes, or deletes the volume label of a disk. MD è Creates a directory. è Creates a directory. MODE è Configures a system device. MORE è Displays output one screen at a time. MOVE è Moves one or more files from one directory to another directory. PATH è Displays or sets a search for executable files. PAUSE è Suspends processing of a batch file and displays a message. POPD è Restores the previous value of the current directory saved by PUSHD. PRINT è Prints a text file. PROMPT è Changes the Windows command prompt. PUSHD è Saves the current directory then changes it. RD è Removes a directory. è Recovers readable information from a bad or defective disk. REM è Records comments (remarks) in batch files or CONFIG.SYS. è Renames a file or files. RENAME è Renames a file or files. è Replaces files. è Removes a directory. SET è Displays, sets, or removes Windows environment variables. SETLOCALè Begins localization of environment changes in a batch file. SHIFT è Shifts the position of replaceable parameters in batch files. SORT è Sorts input. è Starts a separate window to run a specified program or command. SUBST è Associates a path with a drive letter. TIME è Displays or sets the . è Sets the window title for a CMD.EXE session. TREE è Graphically displays the directory structure of a drive or path. TYPE è Displays the contents of a text file. VER è Displays the Windows version. VERIFY è Tells Windows whether to verify that your files are written correctly to a disk. VOL è Displays a disk volume label and serial number. XCOPY è Copies files and directory trees.

ﻛﺎﻧﺖ ھﺬه ﻟﻤﺤﺔ ﺳﺮﻳﻌﻪ ﻋﻦ ﻧﻈﺎم اﻟﺪوس وﺟﻤﯿﻊ اﻻواﻣﺮ اﻟﻤﻮﺟﻮدة ﻓﯿﺔ.

اﻟﻤﻠﻔﺎت اﻟﺪﻓﻌﯿﺔBatch Files :- ھﻲ ﻋﺒﺎرة ﻋﻦ ﻣﻠﻔﺎت ﺗﺤﺘﻮي ﻋﻠﻲ اواﻣﺮ ﻧﻈﺎم اﻟﺪوس ﻛﻞ اﻣﺮ ﻓﻲ ﺳﻄﺮ وﻳﻜﻮن ﻟﮫﺎ اﻻﻣﺘﺪاد BAT or CMD وﻳﺘﻢ ذﻟﻚ ﺑﺎﺳﺘﺨﺪام اي ﺑﺮﻧﺎﻣﺞ ﺗﺤﺮﻳﺮ ﻧﺼﻮص ﻛﺒﺮﻧﺎﻣﺞ Notepad ﺗﻘﻮم ﺑﻜﺘﺎﺑﺔ اﻻواﻣﺮ ﺛﻢ ﺣﻔﻈﮫﺎ ﻓﻲ ﻣﻠﻒ ﺑﺎﻻﻣﺘﺪاد BAT وﻋﻨﺪ ﻓﺘﺢ اﻟﻤﻠﻒ ﻳﻘﻮم ﻣﻮﺟﺔ اﻻواﻣﺮ ﺑﺘﻨﻔﯿﺬ اﻻواﻣﺮ اﻟﻤﻮﺟﻮدة ﺑﺎﻟﻤﻠﻒ.

اﻧﺘﻈﺮوﻧﻲ ﻓﻲ اﻟﺪروس اﻟﻘﺎدﻣﺔ.

http://xredcodex.blogspot.com/