     bat  
 
      bat  (     )  

hostname

    ,    .


        
 
            .         bat-:

for /f "tokens=*" %%a in ('dir /b PATH\*.*') do ren PATH\%%a Prefix%%a

     PATH\    ,   ,  Prefix   ,        .
     ,   ,     .   ,      ,        , ..      .
      ,   , , *.txt,   *.*   ,       .       .

 :

set thePATH=C:\test
for %%I in (*.txt) do ren "%thePATH%\%%~nxI" "%%~nI.dat"


       

    (%)       . 

echo 50%%

   bat-    50%.     echo 50%,        50.
      %    .


       

        ()           .          :

regedit.exe -ea C:\environment.reg "HKEY_CURRENT_USER\Environment"

        HKEY_CURRENT_USER\Environment   C:\environment.reg       HKEY_CURRENT_USER\Environment,     environment.reg.            ,    .
 ,    ,              ,      .


        

              ,       

regedit.exe -s C:\environment.reg

        environment.reg         -s.


  bat     
 
        .   ,   ,    . ,  ,      ,         .       ,            ,     .   ,              ,    .          ,    ,        ,     .

set tempdate=%date:~-10%
date 01-01-04
notepad.exe
date %tempdate%

         ,  (  )     1-  2004 ,    ,    .     .   ,   ,     ,        .     ,              tempdate , ..  ,      .
 ,     ,   ,  ,   ()    .    ,         ,   DOS (, FAR).   ,         ,  "       ...".
                 ,     ,        start, ..     :

set tempdate=%date:~-10%
date 01-01-04
start notepad.exe
date %tempdate%

  ,     ,           ,     .


  bat      
 
         - .            

:test
if exist c:\1.txt goto go
sleep 10
goto test
:go
notepad

       10        1.txt    1.txt ,   ,    go, ..      .
 sleep     Resource Kit.     .
  1.txt     -,    ,         ,         .   ,   -    1.txt   .          

:test
if exist c:\1.txt goto go
sleep 10
goto test
:go
rename c:\1.txt 1.txt
if not errorlevel 0 goto go
del c:\1.txt

  1.txt      ,    ,            ,         .  ,   rename c:\1.txt 1.txt     (..  ),       .      .


    bat-

            .       ,       .
    .       ,     ,     .    :

goto start

   
   ,
   
  ftp-
 ftp- 

   01/01/2004
   10/02/2004

 ..
:start

           ,    start.      goto.
    ,     rem    ,    .

rem       

::      

    (,  ,   ) -  ,                   .


