6 Sept 2012

Top 14Windows 7, Xp,vista basic Internal Command And Syntax Element



Hello friends
Today i m going to tell you top 14 windows7, Xp, vista internal command and syntax element but before this i tell you about INTERNAL COMMAND.
A command prompt, which is embedded into the command .com file, and stored in system memory (RAM).same internal command are:


1. CLS Command: CLS command allows user to clear the complete contents of the screen and leave only a prompt.
C:\>cls             [hit enter]
2.Date command: date command used to display or set the system date in [mm-dd-yy] format.
C:\>date         [for changing date]
C:\>date /t     [(/t) just display the current date]

 3.Time command: time command used to display or set the system time.
C:\>time         [for changing time]
C:\>time/t      [(/t) just display the current time]

 4.VER command: VER command display the version of Microsoft Windows [Version 6.1.7601]
C:\>VER          [hit enter]

 5.VOL command: VOL command display the volume information about designated drive.
C:\>VOL (drive :)
6. COPY command: copy command is usually used to copy one or more file from one location to another.
C:\>copy [/y],[-y],[/a],[/b][d:][path] file name[/a][/b][d:][path][filename][/v]
Or
C:\>copy [/y],[-y],[/a],[/b][d:][path] file name+[d:][oath]filename[...][d:][path][filename][/v]
Or
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/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.
  /D               Allow the destination file to be created decrypte destination  Specifies the  directory and/or filename for the new file(s).
  /V               Verifies that new files are written correctly.
  /N              Uses short filename, if available, when copying a file with a non-8dot3 name.
  /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.
  /Z               Copies networked files in restartable mode.
  /L          If the source is a symbolic link, copy the link to the target instead of the actual file the source link points to.

To make new file:
C:\>copy con rock 
..............type anything........
Then ctrl+z
1 file(s) copied.
To save press ctrl+z
7. TYPE Command: type command display the contents of an existing file.
TYPE [drive:][path]filename.
8.DIR Command: DIR command display directory of file and directories stored on disk.
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/R] [/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                  I  Not content indexed files
                       L  Reparse Points             -  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

9.RENAME Command: RENAME command used to rename file and directories from the original name to a new name.
RENAME [drive:][path]filename1 filename2.
or
REN [drive:][path]filename1 filename2.
[Note:- that you cannot specify a new drive or path for your destination file.]

10.MD Command [make directory]: MD command allows us to create our own directories in ms-dos.

MKDIR [drive:]path
MD [drive:]path
If Command Extensions are enabled MKDIR changes as follows:
MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:
mkdir \a\b\c\d
is the same as:
mkdir \a
chdir \a
mkdir b
chdir b 
mkdir c
chdir c
mkdir d

11.CD Command [change directory]:CD command is use to display working (current) directory and/or change to a different directory.
CHDIR [/D] [drive:][path]
CHDIR [..]
CD [/D] [drive:][path]
CD [..]
 ..   Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
Use the /D switch to change current drive in addition to changing current
directory for a drive.
If Command Extensions are enabled CHDIR changes as follows:
The current directory string is converted to use the same case as
the on disk names.  So CD C:\TEMP would actually set the current
directory to C:\Temp if that is the case on disk.
CHDIR command does not treat spaces as delimiters, so it is possible to
CD into a subdirectory name that contains a space without surrounding.

12.RD Command[remove directory]:RD command use to remove empty directories in MS-DOS.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
 /S      Removes all directories and files in the specified directory
            in addition to the directory itself.  Used to remove a directory
            tree.
 /Q      Quiet mode, do not ask if ok to remove a directory tree with /S
13.PATH Command: PATH commandis use to set or display directories that will be searched for programs not in the current directory.
PATH [[drive:]path[;...]
or
PATH [[drive:]path[;...][;%PATH%]
PATH ;

Type PATH ; to clear all search-path settings and direct cmd.exe to search
only in the current directory.
Type PATH without parameters to display the current path.
Including %PATH% in the new path setting causes the old path to be
appended to the new setting.

14.PROMPT Command: Prompt command is use to allow us to change the MS-DOS prompt or windows command prompt to display more or less information.
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)
  $S     (space)
  $T   Current time


If u have any query Ask in comment.
Enjoy it !!!!!!!!!!!!!!
 

No comments:

Post a Comment