Skip to main content

Posts

Showing posts with the label DOS Commands

MS DOS Top 10 commands

Today I am listing top 10 MS-DOS commands that are used most frequently when you get engaged with the command line( Dos Prompt ). Here is the list and their functionalities described in short. 1)  CD : It is used to change directory @ command prompt type "CD <DIRECTORYNAME>" and press enter, it will takes you to that directory.You can use one or more subdirectory names separated by back slash"\". e.g To change to another path, Type the full path with slashes like CD\WINDOWS\SYSTEM 2)  DIR:  It displays files and folders in the current directory(directory is the term used by DOS for what windows calls a folder). Folders are indicated in the list by <DIR> and files are usually listed by names. DIR /P : displays the contents a page at a time,i.e as many as will fit in your command line window. Press any key to display the next page. DIR /W : Displays the files/folders in multiple rows.This view gives less information per file. DIR*.JPG:...

How to write a bach file or a batch job?

If your are connected with world of programming, you might have heard this word " Batch File ". A batch file is used to execute a no of operations or a list of commands one after the other often requiring no user input. A no of operations are batched in a file to be executed sequentially when we run that file. In Microsoft Windows Operating system a batch file is a file saved with .bat extension while in other operating systems like Unix and Linux it can be written as a command file shell script. Batch files are often used to load programs, run multiple processes at a time, and perform common or repetitive tasks. For example, a batch job could be used to back up many files on a computer system, process log files, run a series of calculation commands, run multiple system diagnostic processes, or any number of other things that require multiple commands to be run. A big advantage of a batch job is that it can be started at any time and left alone until t...

View command history and quickly repeat DOS commands

While at the MS-DOS prompt or in the Windows command line you can quickly repeat any previously entered command and view a history of commands by using the arrow keys. For example, if you previously used the cls command to clear the screen press the up arrow key to repeat that command. Continuing to press the up arrow will scroll though a listing of commands that have been previously entered.  This is a fantastic tip for users who are entering long commands, file names, or directory names. If you happen to mistype a command, pressing the up arrow and then using the left arrow to move to and correct the error can save you a lot of time.

What is DOS?

What is DOS? You might have heard this word a lot of times, right? DOS is Disc Operation System. It is Microsoft's first operating system. The command line screen (black screen) that you see no of times from your Windows, that command line is basically an interface to work under DOS environment. DOS was the most basic operating system. With no fancy interfaces, only a black screen and sometime blue screen you could see. All the instructions or commands are given to DOS through command prompt.  In above image you can clearly see the C prompt i.e. "C:\>". All the commands are given from such Command prompts be it C prompt C:\> or D prompt D:\> or may be E prompt E:\>. Please refer following images for few DOS commands.

Use ipconfig to get IP information

ipconfig is a DOS command to retrieve a pile of information about your network connection and IP information. You can get below information from this command :  ·          Host Name ·          Primary DNS Suffix ·          Node Type ·          IP Routing Enabled ·          WINS Proxy Enabled ·          DNS Suffix Search List ·          Connection-specific DNS Suffix ·          Network Adapter Description ·          Physical (MAC) Address ·          DHCP Enabled ·          IP Address ·    ...