DOS

Iz E-študij, proste zakladnice študentskega znanja

Skoči na: navigacija, iskanje
Small-stub.png
Ta članek je škrbina. E-študiju lahko pomagate tako, da ga dopolnite z vsebino.

Programiranje v MS-DOS oz. Batch

najprej je najbolje da začnemo z navadnim textom:

@echo off set /p _text= Hello world!

potem lahko dodajamo dos komande:

@echo off set /p _text=Da se bomo znašli v DOS-u: help set /p _text=

potem besedilo označimo ko .txt in ga shranimo kot .bat. To .bat datoteko potem odpremo in nam prikaže opcijo help. opomba: \*set /p _ pomeni da se po pritisku tipke enter prikaže nova vrstica.*/

Opcije lahko poljubno dodajamo.Tukaj jih je nekaj: THE LIST OF MS-DOS COMMANDS COMMAND DESCRIPTION ANSI.SYS Defines functions that change display graphics, control cursor movement, and reassign keys. APPEND Causes MS-DOS to look in other directories when editing a file or running a command. ARP Displays, adds, and removes arp information from network devices. ASSIGN Assign a drive letter to an alternate letter. ASSOC View the file associations. AT Schedule a time to execute commands or programs. ATMADM Lists connections and addresses seen by Windows ATM call manager. ATTRIB Display and change file attributes. BATCH Recovery console command that executes a series of commands in a file. BOOTCFG Recovery console command that allows a user to view, modify, and rebuild the boot.ini BREAK Enable / disable CTRL + C feature. CACLS View and modify file ACL's. CALL Calls a batch file from another batch file. CD Changes directories. CHCP Supplement the International keyboard and character set information. CHDIR Changes directories. CHKDSK Check the hard disk drive running FAT for errors. CHKNTFS Check the hard disk drive running NTFS for errors. CHOICE Specify a listing of multiple options within a batch file. CLS Clears the screen. CMD Opens the command interpreter. COLOR Easily change the foreground and background color of the MS-DOS window. COMMAND Opens the command interpreter. COMP Compares files. COMPACT Compresses and uncompress files. CONTROL Open control panel icons from the MS-DOS prompt. CONVERT Convert FAT to NTFS. COPY Copy one or more files to an alternate location. CTTY Change the computers input/output devices. DATE View or change the systems date. DEBUG Debug utility to create assembly programs to modify hardware settings. DEFRAG Re-arrange the hard disk drive to help with loading programs. DEL Deletes one or more files. DELETE Recovery console command that deletes a file.

Ah,ja spraševali se boste zakaj je v angleščini. ^ To je zato ker je prekopirano iz spletne strani kjer je nekdo tole spisal|.Seveda je pustil da pišem kamorkoli:)

)

Lepo programiranje vsem skupaj.

Vzpostavljeno iz »http://www.e-studij.si/DOS«
Osebna orodja
Imenski prostori
Različice
Dejanja
navigacija

Tiskanje/izvoz
orodja