Click here to load reader

КОМАНДЫ ОС

  • View
    68

  • Download
    0

Embed Size (px)

DESCRIPTION

КОМАНДЫ ОС. диалог ОС с пользователем: C : > __ Команда приглашение ОС (к диалогу) пользователь. примеры:. C :> dir . C :> echo TEXT TO DISPLAY . C :> help | more . C :> net help . Просмотр каталога Команда: dir - PowerPoint PPT Presentation

Text of КОМАНДЫ ОС

  • :

    C:>__

    ( ) C:> dir C:> echo TEXT TO DISPLAY :C:> help | more C:> net help

  • : dir: dir : - W - . : dir - ; dir *.exe - .exe ; dir a: - :

  • .: cd (Change Directory): cd : : cd dir1 - DIR1 ; cd .. - ; cd ..\dir2 DIR2 ; cd \ - .

  • . md (Make Directory): md : : md dir3 DIR3 ; md d:\dir3\dir4 - DIR4 DIR3 D:

  • .: rd (Remove Directory). : rd : : rd dir5 DIR5 ; rd d:\dir6\dir7 - DIR7 DIR6 D: !

  • .: copy: copy : Copy text1.txt dir8 text1.txt DIR8 . () : copy [+][ ] ( ) copy , .: my.doc , copy *.doc my.doc , .. my.doc . copy *.lst+*.ref *.prn - lst ref, prn; copy f1.doc+f2.doc - f1.doc f2.doc, f1.doc; copy *.txt all.prn - txt all.prn.

  • .: del: del : del text2.txt - text2.txt . .: ren (Rename) : ren : Ren text3.txt text4.doc - text3.txt text4.doc .

  • .: copy : copy CON , : Copy CON text5.txt - text5.txt . .: copy : copy CON: Copy text5.txt CON text5.txt . Copy text5.txt PRN text5.txt . : type -: type t1.doc - type t1.doc

  • @echo offif .%1==. goto NEWecho 2 >acad.screcho @c:\bat\acad_.bat %1>a.batgoto QUIT

    :NEWremecho 7>acad.screcho @c:\bat\acad_.bat >a.bat:QUITrem c:\util\nc_exit.com 1 2 3

  • DOS :

    1) 2) DOSprint. bat Document1.txt Document2.txtprint. bat :

    print %1 print %2

  • print. bat Document1.txt Document2.txt

    %0 %1 %2 %9shiftprint %1shiftprint %1print. bat Document1.txt Document2.txt

    %0 %1 print Document1.txtprint Document2.txt

  • print. bat Document1.txt Document2.txt

    %0 %1 %2 %9:LOOP TYPE %1 ( ) SHIFT ( )IF NOT .%1. == .. GOTO LOOP ( )

    SHIFT

  • a.bat : set zzz = Ivanov DOStemp = ....windir = ............................zzz = Ivanov DOSb.bat :

    echo %zzz%echo Ivanovset zzz= zzz

  • - COPY MYFILE.TXT TEXT1.TXT COPY MYFILE.TXT TEXT2.TXT COPY MYFILE.TXT PRN COPY CON MYFILE.TXT + CTRL-Z Enter

  • = COPY : : 1.COPY MYFILE.TXT TEXT1.TXT DOS: MODE, CTTY COMMAND CTTY AUX CON = AUX

  • process > file process file process process . process >>file process file process FILELIST.TXT TYPE MYFILE.TXT > PRN PROG OUTPUT.TXT

  • process1 | process2 | ...processN DIR | SORT DIR | FIND "i" > FILE.TXT DIR | FIND /V "i" | SORT >> FILE.TXT

  • process1 | process2 | ...processN DIR | SORT > d2.txt DIR > d1.txt

  • DOS/Windows UNIX. , DOS/Windows, , UNIX

    DOS/WindowsUnix%$ /- ()\/ === ( )!==!!= ( )NOT! || ()**

  • >> ( )>>>> ( )

Search related