Your Ad Here

50+ "Command Prompt" Commands with Short description For Each !!--03

45. sort

A filter to sort lines in the input data stream and send them to the output data stream.

sort <> outputfilename

Equivalent to the Unix command sort.

46. subst

A utility to map a subdirectory to a drive letter.[3]

subst
subst /D (Deletes the substitute drive)

If SUBST e: c:\edrive were executed, a new drive letter e: would be created, showing the contents of c:\edrive. The opposite can be achieved via the join command.

47. sys

A utility to make a volume bootable.

48. time and date

Display and set the time and date

time
date

When these commands are called from the command line or a batch file, they will display the time or date and wait for the user to type a new time or date and press RETURN. The command 'time /t' will bypass asking the user to reset the time.

The Unix command date displays both the time and date, but does not allow the normal users to change either. Users with superuser privileges may use date -s to change the time and date.

The Unix command time performs a different function.

49. tree

Shows the directory tree of the current directory
Options:
/F (Displays the names of the files in each folder.)
/A (Use ASCII instead of the extended characters.)
/? (Shows the help)

tree [options] [directory]

50. truename

truename
or
truename drivename
or
truename filename
or
truename pathname

If typed without a parameter then the current active drive pathname is displayed.

If typed with a parameter then the command outputs the entire path (full directory and filename) of the path or filename. For example, if the working drive and directory were C:\PROGRAMS and one typed truename fish, the output would be C:\PROGRAMS\FISH. This command also displays the UNC pathnames of mapped network or local CD drives.

This command is an undocumented DOS command. The help switch "/?" defines it as a "Reserved command name". It is available in MS-DOS 5.00.

This command is similar to the Unix which command, which, given an executable found in $PATH, would give a full path and name. The C library function realpath performs this function.

51. type

Display a file. The more command is frequently used in conjunction with this command, e.g. type long-text-file | more.

type filename

Equivalent to the Unix command cat.

52. undelete

Restores file previously deleted with del. By default all recoverable files in the working directory are restored. The options are used to change this behavior. If the MS-DOS mirror TSR program is used, then deletion tracking files are created and can be used by undelete.

Options:

* /list : lists the files that can be undeleted.
* /all : Recovers all deleted files without prompting. Uses a number sign for missing first character.
* /dos : Recover only MS-DOS aware files, ignore deletion tracking file.
* /dt : Recover only deletion tracking file aware files.

undelete [filespec][/list|/all][/dos|/dt]

In Unix and Unix-like systems this differs from filesystem to filesystem. People who use the ext2 filesystem can try the command e2undel.

53. ver

Shows the version of MS-DOS you are using.
Some versions of MS-DOS support an undocumented /r switch, which will show the revision as well as the version.

ver [/r]

Roughly equivalent to the Unix command uname.

54. verify

Enables or disables the feature to determine if files have been correctly written to disk.
If no parameter is provided, the command will display the current setting.[7]

verify [on|off]

55. xcopy

Copy entire directory trees.

xcopy directory [destination-directory]

Equivalent to the Unix command cp when used with -r parameter.