Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » Native Mode Windows. Нативный режим Windows.

Модерирует : gyra, Maz

 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

Открыть новую тему     Написать ответ в эту тему

bomzzz



Platinum Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
List of all available commands (+ description)
 
  command /?     For more information on a specific command
 
?        List all available commands (without description).
ATTRIB   Displays or changes file attributes.
CALL     Calls one batch program from another.
CD       Displays the name of or changes the current directory.
NCMD     Starts a new instance of the Native command interpreter.
COPY     Copies one or more files to another location.
DATE     Displays or sets the date.
DELETE   Deletes one or more files.
DIR      Displays a list of files and subdirectories in a directory.
ECHO     Displays messages, or turns command echoing on or off.
ERASE    Deletes one or more files.
EXIT     Quits the CMD.EXE program (command interpreter).
FOR      Runs a specified command for each file in a set of files.
FREE     (free) disc space.
GOTO     Directs the Native command interpreter to a labeled line in
         a batch program.
HELP     Provides Help information for Native commands.
IF       Performs conditional processing in batch programs.
LABEL    Creates, changes, or deletes the volume label of a disk.
MD       Creates a directory.
MKDIR    Creates a directory.
MKLINK   Creates a filesystem link object.
MOVE     Moves one or more files from one directory to another
         directory.
PATH     Displays or sets a search path for executable files.
PAUSE    Suspends processing of a batch file and displays a message.
POPD     Restores the previous value of the current directory saved by
         PUSHD.
PROMPT   Changes the command prompt.
PUSHD    Saves the current directory then changes it.
RD       Removes a directory.
REM      Records comments (remarks) in batch files.
REN      Renames a file or files.
RENAME   Renames a file or files.
REPLACE  Replaces files.
RMDIR    Removes a directory.
SET      Displays, sets, or removes Native environment variables.
SHIFT    Shifts the position of replaceable parameters in batch files.
TIME     Displays or sets the system time.
TIMER    Allow the use of ten stopwatches.
TYPE     Displays the contents of a text file.
VER      Displays the system version.
VERIFY   Tells Native Cmd whether to verify that your files are written
         correctly to a disk.
VOL      Displays a disk volume label and serial number.
Displays or changes file attributes.
 
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] file ...
       [/S [/D]]
 
  +   Sets an attribute
  -   Clears an attribute
  R   Read-only file attribute
  A   Archive file attribute
  S   System file attribute
  H   Hidden file attribute
  /S  Processes matching files in the current directory
      and all subdirectories
  /D  Processes directories as well
 
Type ATTRIB without a parameter to display the attributes of all files.
Calls one batch program from another.
 
CALL [drive:][path]filename [batch-parameter]
 
  batch-parameter  Specifies any command-line information required by the
                   batch program.Changes the current directory or displays it's name
 
CHDIR [/D][drive:][path]
CHDIR[..|.]
CD [/D][drive:][path]
CD[..|.]
 
  ..   parent directory
  .    current directory
  /D   Will change current drive and current directory.
 
Type CD drive: to display the current directory on the specified drive.
Type CD without a parameter to display the current drive and directory.
Copies one or more files to another location.
 
COPY [/V][/Y|/-Y][/A|/B] source [/A|/B]
     [+ source [/A|/B] [+ ...]] [destination [/A|/B]]
 
  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
 
The switch /Y may be present in the COPYCMD environment variable.
...
Displays or sets the date.
 
DATE [/T][date]
 
  /T    display only
 
Type DATE without parameters to display the current date setting and
a prompt for a new one.  Press ENTER to keep the same date.
Deletes one or more files.
 
DEL [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
DELETE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
 
      file  Specifies the file(s) to delete.
 
  /N    Nothing.
  /P    Prompt. Ask before deleting each file.
  /T    Total. Display total number of deleted files and freed disk space.
  /Q    Quiet.
  /W    Wipe. Overwrite the file with random numbers before deleting it.
  /Y    Yes. Kill even *.* without asking.
  /F    Force Delete hidden, read-only and system files.
  /S    Delete file from all sub directory
  /A    Select files to be deleted based on attributes.
        attributes
        R     Read Only files
        S     System files
        A     Archiveable files
        H     Hidden Files
        -     prefix meaning not
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
 
  [drive:][path][filename]
              Specifies drive, directory, and/or files to list.
 
  /A          Displays files with specified attributes.
  attributes   D  Directories                R  Read-only files
               H  Hidden files               A  Files ready for archiving
               S  System files               -  Prefix meaning not
  /B          Uses bare format (no heading information or summary).
  /C          Display the thousand separator in file sizes.  This is the
              default.  Use /-C to disable display of separator.
  /D          Same as wide but files are list sorted by column.
  /L          Uses lowercase.
  /N          New long list format where filenames are on the far right.
  /O          List by files in sorted order.
  sortorder    N  By name (alphabetic)       S  By size (smallest first)
               E  By extension (alphabetic)  D  By date/time (oldest first)
               G  Group directories first    -  Prefix to reverse order
  /P          Pauses after each screenful of information.
  /Q          Display the owner of the file.
  /S          Displays files in specified directory and all subdirectories.
  /T          Controls which time field displayed or used for sorting
  timefield   C  Creation
              A  Last Access
              W  Last Written
  /W          Uses wide list format.
  /X          This displays the short names generated for non-8dot3 file
              names.  The format is that of /N with the short name inserted
              before the long name. If no short name is present, blanks are
              displayed in its place.
  /4          Displays four-digit years
 
Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
Displays a message or switches command echoing on or off.
 
  ECHO [ON | OFF]
  ECHO [message]
  ECHO.             prints an empty line
 
Type ECHO without a parameter to display the current ECHO setting.Deletes one or more files.
 
DEL [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
DELETE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
ERASE [/N /P /T /Q /S /W /Y /Z /A[[:]attributes]] file ...
 
      file  Specifies the file(s) to delete.
 
  /N    Nothing.
  /P    Prompt. Ask before deleting each file.
  /T    Total. Display total number of deleted files and freed disk space.
  /Q    Quiet.
  /W    Wipe. Overwrite the file with random numbers before deleting it.
  /Y    Yes. Kill even *.* without asking.
  /F    Force Delete hidden, read-only and system files.
  /S    Delete file from all sub directory
  /A    Select files to be deleted based on attributes.
        attributes
        R     Read Only files
        S     System files
        A     Archiveable files
        H     Hidden Files
        -     prefix meaning not
Exits the command line interpreter.
 
EXIT [/b] [ExitCode]
 
  /B            Exits a batch file only.  
                If run outside of a batch file it will exit cmd.exe
  ExitCode      This value will be assigned to ERRORLEVEL on exit
Runs a specified command for each file in a set of files
 
FOR variable IN (set) DO command [parameters]
 
  variable  Specifies a replaceable parameter.
  (set)      Specifies a set of one or more files. Wildcards may be used.
  command    Specifies the command to carry out for each file.
  parameters Specifies parameters or switches for the specified command.
 
To use the FOR command in a batch program, specify %variable instead of
variable.
Displays drive information.
 
FREE [drive: ...]
Directs CMD to a labeled line in a batch script.
 
GOTO label
 
  label  Specifies a text string used in a batch script as a label.
 
You type a label on a line by itself, beginning with a colon.Performs conditional processing in batch programs.
 
  IF [NOT] ERRORLEVEL number command
  IF [NOT] string1==string2 command
  IF [NOT] EXIST filename command
  IF [NOT] DEFINED variable command
 
NOT               Specifies that CMD should carry out the command only if
                  the condition is false
ERRORLEVEL number Specifies a true condition if the last program run returned
                  an exit code equal or greater than the number specified.
command           Specifies the command to carry out if the condition is met.
string1==string2  Specifies a true condition if the specified text strings
                  match.
EXIST filename    Specifies a true condition if the specified filename exists.
DEFINED variable  Specifies a true condition if the specified variable is
                  defined.
Displays or changes drive label.
 
LABEL [drive:][label]
Creates a directory.
 
MKDIR [drive:]path
MD [drive:]pathCreates a directory.
 
MKDIR [drive:]path
MD [drive:]pathCreates a filesystem link object.
 
MKLINK [/D | /H | /J] linkname target
 
  /D  Indicates that the symbolic link target is a directory.
  /H  Create a hard link.
  /J  Create a directory junction.
 
If neither /H or /J is specified, a symbolic link is created.
Moves files and renames files and directories.
 
To move one or more files:
MOVE [/N][drive:][path]filename1[,...] destination
 
To rename a directory:
MOVE [/N][drive:][path]dirname1 dirname2
 
  [drive:][path]filename1  Specifies the location and name of the file
                           or files you want to move.
  /N                    Nothing. Do everything but move files or directories.
 
Current limitations:
  - You can't move a file or directory from one drive to another.
Displays or sets a search path for executable files.
 
PATH [[drive:]path[;...]]
PATH ;
 
Type PATH ; to clear all search-path settings and direct the command shell
to search only in the current directory.
Type PATH without parameters to display the current path.
Stops the execution of a batch file and shows the following message:
'Press any key to continue...' or a user defined message.
 
PAUSE [message]Changes to the directory stored by the PUSHD command.
 
POPD
Stores the current directory for use by the POPD command, then
changes to the specified directory.
 
PUSHD [path | ..]
 
  path        Specifies the directory to make the current directory
 
Changes the command prompt.
 
PROMPT [text]
 
  text    Specifies a new command prompt.
 
Prompt can be made up of normal characters and the following special codes:
 
  $A   & (Ampersand)
  $B   | (pipe)
  $C   ( (Left parenthesis)
  $D   Current date
  $E   Escape code (ASCII code 27)
  $F   ) (Right parenthesis)
  $G   > (greater-than sign)
  $H   Backspace (erases previous character)
  $L   < (less-than sign)
  $N   Current drive
  $P   Current drive and path
  $Q   = (equal sign)
  $T   Current time
  $V   OS version number
  $_   Carriage return and linefeed
  $$   $ (dollar sign)
  $+   Displays the current depth of the directory stack
Type PROMPT without parameters to reset the prompt to the default setting.Stores the current directory for use by the POPD command, then
changes to the specified directory.
 
PUSHD [path | ..]
 
  path        Specifies the directory to make the current directory
 
Removes a directory.
 
RMDIR [drive:]path
RD [drive:]path
/S            Deletes all files and folders within target
/Q            Doesnt prompt for user
Starts a comment line in a batch file.
 
REM [Comment]Renames a file/directory or files/directories.
 
RENAME [/E /N /P /Q /S /T] old_name ... new_name
REN [/E /N /P /Q /S /T] old_name ... new_name
 
  /E    No error messages.
  /N    Nothing.
  /P    Prompts for confirmation before renaming each file.
        (Not implemented yet!)
  /Q    Quiet.
  /S    Rename subdirectories.
  /T    Display total number of renamed files.
 
Note that you cannot specify a new drive or path for your destination. Use
the MOVE command for that purpose.
Renames a file/directory or files/directories.
 
RENAME [/E /N /P /Q /S /T] old_name ... new_name
REN [/E /N /P /Q /S /T] old_name ... new_name
 
  /E    No error messages.
  /N    Nothing.
  /P    Prompts for confirmation before renaming each file.
        (Not implemented yet!)
  /Q    Quiet.
  /S    Rename subdirectories.
  /T    Display total number of renamed files.
 
Note that you cannot specify a new drive or path for your destination. Use
the MOVE command for that purpose.
Replaces files.
 
REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [/P] [/R] [/W]
REPLACE [drive1:][path1]filename [drive2:][path2] [/P] [/R] [/S] [/W] [/U]
 
  [drive1:][path1]filename Specifies the source file or files.
  [drive2:][path2]         Specifies the directory where files are to be
                           replaced.
  /A                       Adds new files to destination directory. Cannot
                           use with /S or /U switches.
  /P                       Prompts for confirmation before replacing a file or
                           adding a source file.
  /R                       Replaces read-only files as well as unprotected
                           files.
  /S                       Replaces files in all subdirectories of the
                           destination directory. Cannot use with the /A
                           switch.
  /W                       Waits for you to insert a disk before beginning.
  /U                       Replaces (updates) only files that are older than
                           source files. Cannot use with the /A switch.
Removes a directory.
 
RMDIR [drive:]path
RD [drive:]path
/S            Deletes all files and folders within target
/Q            Doesnt prompt for user
Displays, sets, or removes environment variables.
 
SET [variable[=][string]]
 
  variable  Specifies the environment-variable name.
  string    Specifies a series of characters to assign to the variable.
 
Type SET without parameters to display the current environment variables.
Changes the position of replaceable parameters in a batch file.
 
SHIFT [DOWN]Displays or sets the system time.
 
TIME [/T][time]
 
  /T    display only
 
Type TIME with no parameters to display the current time setting and a prompt
for a new one.  Press ENTER to keep the same time.
allow the use of ten stopwatches.
 
TIMER  [ON|OFF] [/S] [/n] [/Fn]
 
  ON          set stopwatch ON
  OFF         set stopwatch OFF
  /S          Split time. Return stopwatch split
              time without changing its value
  /n          Specifiy the stopwatch number.
              Stopwatches available are 0 to 9
              If it is not specified default is 1
  /Fn         Format for output
              n can be:
                    0    milliseconds
                    1    hhђmmђssђdd
 
if none of ON, OFF or /S is specified the command
will toggle stopwatch state
 
Displays the contents of text files.
 
TYPE [drive:][path]filename  
  /P           Shows one screen of output at a time.
Displays shell version information
This command is just a dummy!!
Sets whether to verify that your files are written correctly to a
disk.
 
VERIFY [ON | OFF]
 
Type VERIFY without a parameter to display the current VERIFY setting.
Displays the disk volume label and serial number, if they exist.
 
VOL [drive:]
--------------- пример-----------------

Цитата:
@echo off
for %%i in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do if exist %%i:\SVPE\winpe.wim set LETTER=%%i
if defined %LETTER% (
ECHO FileSystem not found
NCMD
) ELSE (
ECHO %LETTER%:\ copy...
FOR /F %%I IN ('DIR /S /B /A:-D %LETTER%:\I386') DO copy %%I X:%%~pnxI>nul
FOR /F %%I IN ('DIR /S /B %LETTER%:\Programs') DO copy %%I X:%%~pnxI>nul
)
 


Всего записей: 13343 | Зарегистр. 13-01-2008 | Отправлено: 11:35 29-03-2012 | Исправлено: bomzzz, 09:01 04-04-2012
Открыть новую тему     Написать ответ в эту тему

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » Native Mode Windows. Нативный режим Windows.


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.Board
© Ru.Board 2000-2020

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru