February 21st, 2007
Part 1: Helpful Command-Line Commands (Windows)
By Kyle Reasons
Contributing Writer, RealTechNews
Windows 2000/XP/Server 2003
General
- assoc
- Used to view and change file extension associations in Windows
- Enables you to schedule one or more programs to run at a designated date and time
- Enables you to view the attributes set for a file and to change one or more attributes
- Causes the system to check for a break key only during standard operations, such as while making input or output (break off) or during all program execution options (break on)
- Enables you to set, edit, or view the security permissions associated with a directory or file
- Enables you to change to a different folder or to view the name of the current folder
- Used to view the currently active code page number or to set a different code page number
- Used to report the disk file system statistics and to correct file system errors such as lost clusters (for FAT and NTFS)
- Used to report the disk file system statistics and to correct file system errors such as lost clusters (only NTFS)
- Clears the information currently displayed on the screen
- Used to start a new NT DOS Virtual Machine (NTDVM) session; a new command line session
- Sets up the foreground and background screen colors
- Enables you to compare the information in two files or in two sets of files to determine the difference in content
- Compress files and subfolders within a folder or removes the compression attribute
- Converts a FAT formatted volume to NTFS at the time a server is booted
- Copies files from one disk location to another
- Enables you to view the date to reset it
- Deletes specified files on a volume
- dir
- List files and subfolders within a folder
- Checks the contents of one floppy disk against the contents of another
- Copies information on a floopy disk to another floppy disk
- Installs, starts, or stops the Performance/System Monitor disk counters
- Starts the recall of previously used MS-DOS commands and is used to create command macros
- Shows an associated message or turns screen messages on or off
- Used to close the Command Prompt windows session
- Used to find a designated set of characters contained in one or more files
- Used to find one ore more sets of characters within a set of files
- Formats a floppy disk
- Provides detailed information about file extension associations and it is used to change associations so as to link them with a designated program
- Displays characters and code-page switching for a color display monitor
- Provides a list of command-line commands and is used to display help about a particular command
- Enables you to set the keyboard language or layout
- Modifies the label on a disk volume
- Used to set up a new folder
- Sets up parameters for a device or communications port
- Used to limit the display to one screen at a time so that information does not rush by faster than it can be read
- Enables you to move files from one disk to another on the same volume
- Used to establish the path or list of folders to search in order to run a program or command
- Deletes a specified drive letter that was temporarily created by pushd
- Prints a designated file
- Modifies the format of the command prompt shown in the Command Prompt window
- Changes the path and directory specified and stores the current path and directory for later reference
- Deletes a folder or subfolder
- Enables you to try recovering files and data from a damaged unreadable disk
- Starts the GUI-based registry editor
- Renames a file or a group of files
- Compares files in two disks or folders and synchronizes the files in one to those on another
- Shows a list of currently set environment variables and is used to modify those variables
- Used to start command process extensions via a batch file, such as for detecting error-level information
- Sorts lines input into a file, written to the screen, or sent to a printer from a file
- Starts a new Command Prompt window in which to run a program or a command
- Used to link a path or volume with a designated drive letter
- Provides a wealth of information about hardware and software (not available in 2000)
- Used to view the time of day and to reset it
- Modifies the title bar of the Command Prompt window
- Used to show a graphic of the folder and subfolder tree structure
- Shows a file’s contents on the screen or sends teh contents of a file
- Shows the current version of the operating system
- Instructs the operating system to verify the each file is accurately written to disk at time it is created, copied, moved, or updated
- Used to view the volume label, if there is one, and the volume serial number
- Designed as a fast copy program for files, folders, and subfolders
Network Commands
- ipconfig
- Displays information about the TCP/IP setup
- Used to change account policy settings and to synchronize BDCs
- Adds or removes a computer in a domain
- Shows the started services that can be configured from this command, such as the Server and Workstation services
- Resumes a service that has been paused
- Shows the currently open shared files and file locks and is used to close designated files or to remove file locks
- Shows the existing global groups and is used to modify those groups
- Displays help information for the net command
- Used to determine the meaning of a numeric network error message
- Shows the exisiting local groups and is used to modify those groups
- Used to display, add, or remove computer names that can participate in the Messenger service
- Pauses a service
- Used to view and manage queued print jobs by computer, share name, and job number
- Sends a message to designated users or to all users currently connected to the server
- Shows the users currently connected to the server and is used to disconnet designated user sessions or all user sessions
- Used to create, delete, or show information about a shared resource
- Shows the started services or is used to start a designated service
- Shows the accumulated statistics about the Server or Workstation service
- Stops a network service on a server
- Used to synchronoize the server’s clock with that of another computer in the same or in a different domain, or to view the time as set on another computer in the same or in a different domain
- Shows information about shared resources or is used to configure, connect, and disconnect shared resources
- Used to view, add, or modify a user account set up on the server or in a domain
- Presents a list of domains, the computers and servers in a domain, and all resources shared by a computer in a domain
- Shows the server and domain names registered to the network (used only on server versions)
- Used to display information about the Transmission Control Protocol/Internet Protocol (TCP/IP) session at the server
- Used to poll TCP/IP node to verify you can communicate with it
- Used to view the number of hops and other routing information on the path to the specifeid server or host
Later this week: Linux and Mac OS X commands
Windows 2000/XP/Server 2003
General
- assoc
- Used to view and change file extension associations in Windows
- Enables you to schedule one or more programs to run at a designated date and time
- Enables you to view the attributes set for a file and to change one or more attributes
- Causes the system to check for a break key only during standard operations, such as while making input or output (break off) or during all program execution options (break on)
- Enables you to set, edit, or view the security permissions associated with a directory or file
- Enables you to change to a different folder or to view the name of the current folder
- Used to view the currently active code page number or to set a different code page number
- Used to report the disk file system statistics and to correct file system errors such as lost clusters (for FAT and NTFS)
- Used to report the disk file system statistics and to correct file system errors such as lost clusters (only NTFS)
- Clears the information currently displayed on the screen
- Used to start a new NT DOS Virtual Machine (NTDVM) session; a new command line session
- Sets up the foreground and background screen colors
- Enables you to compare the information in two files or in two sets of files to determine the difference in content
- Compress files and subfolders within a folder or removes the compression attribute
- Converts a FAT formatted volume to NTFS at the time a server is booted
- Copies files from one disk location to another
- Enables you to view the date to reset it
- Deletes specified files on a volume
- dir
- List files and subfolders within a folder
- Checks the contents of one floppy disk against the contents of another
- Copies information on a floopy disk to another floppy disk
- Installs, starts, or stops the Performance/System Monitor disk counters
- Starts the recall of previously used MS-DOS commands and is used to create command macros
- Shows an associated message or turns screen messages on or off
- Used to close the Command Prompt windows session
- Used to find a designated set of characters contained in one or more files
- Used to find one ore more sets of characters within a set of files
- Formats a floppy disk
- Provides detailed information about file extension associations and it is used to change associations so as to link them with a designated program
- Displays characters and code-page switching for a color display monitor
- Provides a list of command-line commands and is used to display help about a particular command
- Enables you to set the keyboard language or layout
- Modifies the label on a disk volume
- Used to set up a new folder
- Sets up parameters for a device or communications port
- Used to limit the display to one screen at a time so that information does not rush by faster than it can be read
- Enables you to move files from one disk to another on the same volume
- Used to establish the path or list of folders to search in order to run a program or command
- Deletes a specified drive letter that was temporarily created by pushd
- Prints a designated file
- Modifies the format of the command prompt shown in the Command Prompt window
- Changes the path and directory specified and stores the current path and directory for later reference
- Deletes a folder or subfolder
- Enables you to try recovering files and data from a damaged unreadable disk
- Starts the GUI-based registry editor
- Renames a file or a group of files
- Compares files in two disks or folders and synchronizes the files in one to those on another
- Shows a list of currently set environment variables and is used to modify those variables
- Used to start command process extensions via a batch file, such as for detecting error-level information
- Sorts lines input into a file, written to the screen, or sent to a printer from a file
- Starts a new Command Prompt window in which to run a program or a command
- Used to link a path or volume with a designated drive letter
- Provides a wealth of information about hardware and software (not available in 2000)
- Used to view the time of day and to reset it
- Modifies the title bar of the Command Prompt window
- Used to show a graphic of the folder and subfolder tree structure
- Shows a file’s contents on the screen or sends teh contents of a file
- Shows the current version of the operating system
- Instructs the operating system to verify the each file is accurately written to disk at time it is created, copied, moved, or updated
- Used to view the volume label, if there is one, and the volume serial number
- Designed as a fast copy program for files, folders, and subfolders
Network Commands
- ipconfig
- Displays information about the TCP/IP setup
- Used to change account policy settings and to synchronize BDCs
- Adds or removes a computer in a domain
- Shows the started services that can be configured from this command, such as the Server and Workstation services
- Resumes a service that has been paused
- Shows the currently open shared files and file locks and is used to close designated files or to remove file locks
- Shows the existing global groups and is used to modify those groups
- Displays help information for the net command
- Used to determine the meaning of a numeric network error message
- Shows the exisiting local groups and is used to modify those groups
- Used to display, add, or remove computer names that can participate in the Messenger service
- Pauses a service
- Used to view and manage queued print jobs by computer, share name, and job number
- Sends a message to designated users or to all users currently connected to the server
- Shows the users currently connected to the server and is used to disconnet designated user sessions or all user sessions
- Used to create, delete, or show information about a shared resource
- Shows the started services or is used to start a designated service
- Shows the accumulated statistics about the Server or Workstation service
- Stops a network service on a server
- Used to synchronoize the server’s clock with that of another computer in the same or in a different domain, or to view the time as set on another computer in the same or in a different domain
- Shows information about shared resources or is used to configure, connect, and disconnect shared resources
- Used to view, add, or modify a user account set up on the server or in a domain
- Presents a list of domains, the computers and servers in a domain, and all resources shared by a computer in a domain
- Shows the server and domain names registered to the network (used only on server versions)
- Used to display information about the Transmission Control Protocol/Internet Protocol (TCP/IP) session at the server
- Used to poll TCP/IP node to verify you can communicate with it
- Used to view the number of hops and other routing information on the path to the specifeid server or host
Later this week: Linux and Mac OS X commands













Lewie says:
DOS will never die!
February 21st, 2007 at 1:13 pm
Jasper O Waale says:
Did I wake up and missed 20 years of moving forward ?
I admit that I use bat files to do most stuff that my staff try to solve with VB, but I’m able to do the same and make the files in 5-10min my staff works days on the same in VB, whats needed is just a a catalog of small bat files that can be adapted when needed
February 21st, 2007 at 8:06 pm