      

,    bat             .       batch     (-).      bat    .
    bat   -  .   ,    .
 bat-   (          bat):

@echo off
echo Start %time%
echo Create test.txt
echo test>C:\test.txt
echo Copy Test.txt to Old_test.txt
copy C:\test.txt C:\Old_test.txt
echo Stop %time%


     .  ,  -      .
    -     .
    -  ,      test.txt
      test.txt    .    .      C:\test.txt  test
    - ,           .
       C:\test.txt   C:\Old_test.txt, ..      .
,          .      -                .

     , , 1.bat
,                      ,             . ,  -         .         ()    LOG, ..       C:\LOG.    1.bat    :

1.bat>C:\LOG\%date~-10%.txt

      ,       bat-. ,      ,     ,   8.3. ..,    bat- C:\Program Files\1.bat, ,        bat-      :

"C:\Program Files\1.bat">C:\LOG\%date~-10%.txt
C:\Progra~1\1.bat>C:\LOG\%date~-10%.txt

   1.bat   C:\LOG     ,    bat-, , 13.01.2004.txt         1.bat
 bat-,        ,   ,    -  :

Start 19:03:27,20
Create test.txt
Copy Test.txt to Old_test.txt
 : 1.
Stop 19:03:27,21

 ,      bat-  -     >  :

\.bat>\.txt

 -   .  ,            html (      - ,      1.bat)      .


       
 
        . ,    format  del      .         ,                   . ,        -,         batch    .
         . ..           .
          .    , ,  Folder.          . ,       :

del C:\Folder

        .         :

C:\Folder\*,  [Y()/N()]?

      ,       Y,   N.       ,   .
    .     

|

    ,             .   .      :

echo Y|del C:\Folder

            Folder,      (Y).     Folder  .
    .


          
 
     ,    ,    .    ,    @.
      ,    @    .

echo Testing

      echo Testing,     -   ,  Testing.

@echo Testing

        , ..  Testing.     .
           ,          :

@echo off

            .     ,     @.


   bat-   
 
,    ,      . ,   ,       ,    ,          .
    bat .    1.bat     

call 2.bat

   2.bat     

pause

   1.bat  ,         ,     .  ,          call       ,      ,   call.
  ,    bat   ,    ,      .     , ,      ,   ,   ,      .     start    1.bat  

start 2.bat

   1.bat   ,        ,      (1.bat)  .
 ,       ,      ,    start.
  start  call         ,         .
,  start log.txt,     ,   log.txt  Notepad     .


    bat- 
 
         ,           ,    .   ,     

net send name Message text

 name    ,   ,  Message text -  .      name   .
   ,              MS-DOS (866  ).       .     DOS      ,   .   , , FAR.   FAR     (F4)    F8.         DOS,  ,     ,   F8    Win,   ,    DOS      Win   F8.


      
 
        

del /f /s /q C:\*.tmp


/f -   ,        
/s -     
/q -      
C: - ,       .     ,  , , C:\WinNT
*.tmp -  ,   
    /q    .  ,            .


  IP      
 
IP       netsh.
   IP ,     .         

netsh interface ip show address

    -     .    . ,    FASTNET.
,    IP   192.168.1.42,    ,   DHCP,  192.168.1.1,  255.255.255.0   , ,           :

netsh interface ip set address name="FASTNET" static 192.168.1.42 255.255.255.0 192.169.1.1 1

      FASTNET IP    192.168.1.42.
 netsh          .            netsh /?
