Advertisements
Showing posts with label MS-DOS. Show all posts
Showing posts with label MS-DOS. Show all posts

Wednesday, April 23, 2014

// // Leave a Comment

Running DOS or C/C++ in Full Screen in Windows 7 or 8

Hi,

If you are a developer, of learning programming languages, you must have to deal with Turbo C/C++ compiler. On the early days of Learning, we have used Windows XP which have ability to run Command Prompt (MS DOS) in full screen mode. But Microsoft has ended support to Windows XP and released 4 new operating system after Windows XP. The major change in newer versions is that, they do not support MS DOS in full screen mode.

Now the requirement is, if you have to work on C/C++ application, you have to work in minimized screen. To make it full screen, we have an application named DOSBox, which is open-source and cross platform.
Below is step by step guide to install and configure DOSBox.

  • Download and Install DOSBox from http://www.dosbox.com/download.php?main=1.
  • After installing open DOSBox from menu.
  • You will see following screen.
  • Type following command to load Turbo C compiler in DOSBox.
    MOUNT C C:\TC ⏎
    C: ⏎
    CD BIN ⏎
    TC ⏎
    

Description of Code:

Line 1: MOUNT C C:\TC : Mounts C:\TC (where Turbo C is located) as C Drive. You can choose any drive that exists in your system. This will not effect your existing files.
Line 2: C: : Navigated to C Drive.
Line 3: CD BIN Navigated to Folder BIN normally as we do in MS - DOS.
Line 4: TC Run the Turbo C/C++ Compiler IDE located inside BIN folder.


Lets make it full screen.
Do not forget to change the Directory options from Options menu so that Include directories work fine.
If you find this article helpful, do share with your friends. If you have any suggestions or comments, let us know. We will read and improve ourselves.
John Bhatt
Read More

Saturday, September 7, 2013

// // Leave a Comment

Creating New File and Folder in MS-DOS

Hi,

This is another Tutorials in MS-DOS Series. In this post, we will learn to Create a new file and folder using DOS System. Before this, I would like to introduce you with Command Prompt.
Prompt means “Assist by suggesting the next words of something forgotten or imperfectly learned.” MS DOS prompt also help you and interfaces with you.

In above line C: (colon) is current drive , \ (backslash) is symbol for directory (folder), Users is directory name, \ (backslash) is directory symbol, John is name of folder and > (greater than) is command prompt symbol. This is the place, where you will write command.
1. How to create a File?

Use following commands to create a file in MS-DOS command prompt.
copy con filename ↵

Hi, My name is John. You are learning how to create a file in DOS mode.

^Z ↵
Meaning of above commands.
copy con – This command is used for creating new file.

↵ – This is Enter key. This executes command typed in prompt.

Hi,.. .. .. in DOS mode. – This is text of your file.

^Z ↵ – This is Ctrl+Z key. This saves current file. Alternate for this is F6 key.

2. How to create Folder?

Use following commands to create a folder (directory) in MS-DOS command prompt.
md foldername ↵

or

mkdir foldername ↵
Meanings of Above Command:

md or mkdir – Make Directory

↵ – Enter Key to execute command.
Will be back with more on MS-DOS Series. Till then, you can add me on Google+ at +John Bhatt 
Read More

Friday, September 6, 2013

// // Leave a Comment

Component files of MS-DOS

Hi,

I am back after so long on my Tutorial Series. This is about MS-DOS.

We left at Introduction of Commands, today we will continue with File System of MS-DOS.

DOS is created using following files. IO.SYS, MSDOS.SYS, COMMAND.COM, AUTOEXE.BAT.
These files are created for special purpose like booting, creating and coordinating with devices for input, output  and saving internal commands of DOS in memory.
In other words these are program files which are created which creating DOS. You will get brief introduction to these files on next page.


  1. IO.SYS & MSDOS.SYSThese both files are hidden files. These are system files and are present on every disc. At the time of booting both of these Files are automatically get saved in Temporary Memory. IO.sys stores the standard operation related to input and output devices. And MSDOS.sys file stores command that contact with operating system.

  1. COMMAND.COM : This is a command interpreter file in MS-DOS which is a group of IO.sys, MSDOS.sys and COMMAND.COM. At the time of booting of computer, all these three files are automatically saved in the memory. COMMAND.COM file contains all the definitions of Internal command and programs of these commands. This file is mainly responsible for executing command which are typed by user in command prompt.. 

  1. AUTOEXE.BAT: After booting Operating System it looks for AUTOEXE.BAT file in the disc and executes it. This process is repeated when computer is switched on. It is a batch file which contains MS-DOS command like a program file and it automatically executes the command written in it. Therefore it is named AUTOEXE.BAT which means self executable batch file.

On next post, I will be talking about creating a File in MS-DOS and Making New Directory (folder).

Till then, you can add me to Google+ at +John Bhatt 

Read More

Sunday, July 15, 2012

// // 2 comments

Installing ASP.NET in IIS

Hi,
Today we will learn how to Install .NET in IIS.
By default IIS is turned Off. To Turn on we will go to Control panel > programs > turn windows feature on or off.

Check all options by Expanding and Make sure that you got the Internet Information Services checked fully as in Above screen. Then you need not to install any more scripts to host asp.net websites.

Now If ASP.NET Websites are not running and throwing error like

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://localhost:80/JOHNSAPP/DEFAULT.ASPX
Physical Path C:\inetpub\wwwroot\John\Default.aspx
You should Install ASP.NET (configure IIS for ASP.NET).

Here are some basic steps to do so,
Open Command Prompt as Administrator
Navigate to C:\
C:\>cd Windows

C:\Windows>cd Microsoft.NET

C:\Windows\Microsoft.NET>cd Framework

Now you will be at

C:\Windows\Microsoft.NET\Framework\

First Decide what version are you using. ASP.NET 1.0, 1.1, 2.0, 3, 3.5 , 4 or 4.5 (if Installed).
Then type following code in Command Prompt
C:\Windows\Microsoft.NET\Framework>cd v4.*      //installing ASP.NET V4.0 here.

C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i

 Command Prompt will Install Code and You are now Ready to Access your ASP.NET Site with Localhost.

Best of Luck....
John Bhatt
Read More

Monday, June 4, 2012

// // Leave a Comment

Quick and Basic Beginners Guide to MS-DOS.

As you all know, Microsoft DOS is worlds one of the Most Popular and Powerful Operating System. Which even keeps the same value in the Age of Windows 8. So, Lets learn MS-DOS in a quick steps.

# MS DOS > Microsoft Disc Operating System

# Definition:

MS-Dos is a command based operating system provided by Microsoft.

# How to Start MS-DOS?
 1. Start > Programs > Accessories > Command Prompt.
 2. Start > Run > command
    or
     Start > Run > cmd

# Command: Command are small programs that are already built with MS-DOS. Commands are of two types:
    a) Internal Command
    b) External Command
# How to create a new file?

      C:\>copy con filename  
            and press enter

# How to save file?
     ^Z then press Enter.

# How to make a new Folder?
    C:\>md foldername and press enter.

# How to open directory?
                  C:\>cd foldername  and press enter.
    C:\foldername>
# How to Change Folder?
    C:\foldername>cd..
    C:\>

# How to remove a directory (folder)?
    C:\>rd foldername and press enter

# How to delete a file?
    C:\>del filename and press enter.

# How to list contents of Folder?
    C:\>dir press enter.

# How to see the contents of File?
    C:\>type filename and press enter

# How to Erase all previous contents of Screen?\
    C:\>cls and press enter

# How to Close MS-DOS?
    C:\>exit and press enter.

# How to enter full screen mode?
    C:\> press Alt+Enter key.
I hope this is surely Helpful to you. If you do have any questions, suggestions or Complaints, please let me know about them. Just leave a comment with Valid Email, I will be surely responding.
Read More

Thursday, November 3, 2011

// // Leave a Comment

MS DOS - Commands

Command

Definition

Commands are small piece of software, alternatively you can define command as individual program of function which are written in MS-DOS library.
According to the nature of command these are categorized in two groups. These are Internal Commands and External Commands. You will learn more about these commands in next chapter.
  • Every Command will be executed only on hitting Enter key.

Types of Command

Internal Commands

Internal Commands: Commands that come built in with MS-DOS are called Internal Commands. These are fixed commands and the functions of these command is already defined in COMMAND.COM file which is the library file of MS-DOS. Some Internal Commands are as follows:
COPY 
DEL
DIR
MD
CD
RD
REN
DATE
TIME
MKDIR
RMDIR
RENAME
DELETE
etc.

External Commands

External Commands: Commands those do not come with MS-DOS and needs to be installed separately or are located in Floppies or Hard Disc, are called External Commands. Some of these commands are as follows:
DELTREE
LABEL
TREE
FORMAT
DISKCHK
DISKCOMP
DISKCOPY
XCOPY
PRINT
HELP
ATTRIB
EDIT
FC
etc.
Read More

Monday, October 31, 2011

// // Leave a Comment

Indroduction to MS DOS


MS-DOS (Microsoft disc operating system)

MS-DOS is a command based single user, single tasking operating system by Microsoft. This is very popular and useful operating system and widely used operating system also. Microsoft gifts MS-DOS free with current versions of Windows. It can also defined as “An operating system used on all personal computers and compatibles. As with other operating systems, such as OS/2, it translates user keyboard input into operations the computer can perform.” MS-DOS can be easily accessed by using the command prompt interface, while MS-DOS-based programs can be accessed through the use of shortcuts on the desktop.

How to Start MS DOS?

You can open MS-DOS in two ways. These are as following:
  1. Click on Start → Programs → Accessories → Command Prompt.
  2. Click on Start → Run → type command → OK.
    or

    Click on Start → Run → type cmd →OK.
    Hit Ctrl+Enter to enter full screen mode.
Read More