, 2, :
( 0, 1);
( 0, 1,..., 7);
( 0, 1,..., 9, A, B, C, D, E, F).
, 0 1. () () . , , (, 1 , 0 ). .
, .
, , - .
. , , . .
_4_1. . . Autoexec.bat.
bat cmd, . , ( ), . Windows9X command.com, WinNT/2K/XP cmd.exe. (FOR, GOTO, IF ..) (format.exe, regedit.exe, win.com ..).
.
Windows , :
COPY CON myfile.txt
( CON) myfile.txt. F6 CTRL-Z .
ECHO 1 > myfile.txt
myfile.txt, 1
:
COPY CON > myfile.txt < xyz
, , , xyz. , , , myfile.txt .
|
|
, ( newfile.bat , , - nf.bat), .
:
@ECHO OFF
copy con > %1 < xyz
( , , PATH).
:
Newfile.bat myfile.txt
Nf.bat myfile.txt
AUTOEXEC.BAT , . . CONFIG.SYS.
AUTOEXEC.BAT . (PATH), MS-DOS (PROMPT), .. AUTOEXEC.BAT MS-DOS .
, AUTOEXEC.BAT , . CTRL/C. "Terminate batch job? (Y/N)", Y .