Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DOS and UNIX on Windows7


16 Dec 2010   #1

Windows 7 Ultimate 64-bit
 
 
DOS and UNIX on Windows7

I have the following queries :

1. Whenever I execute a C/C++ program (using DOS Box), system exits from DOS. Is it bcoz Windows7 does not support DOS? Is there any solution?

2. I am planning to learn UNIX and want to install it on Windows7? I have enabled "Subsystem for UNIX-based Applications (SUA)" from "Control Panel>Programs>Turn Windows features on or off", but I do not know which file to download from this link Download details: Utilities and SDK for Subsystem for UNIX-based Applications in Microsoft Windows 7 and Windows Server 2008 R2. Is this right way or is there any other way?

Awaiting your reply.

Regards
Arpit

My System SpecsSystem Spec
.

16 Dec 2010   #2

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

I think a much better solution is to install a virtual pc, such as Virtualbox or VMware Player (both free). They support DOS and UNIX. Any reason why UNIX instead of Linux? If UNIX, are you installing Solaris?
My System SpecsSystem Spec
16 Dec 2010   #3

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

You could for instance pause the execution of your program just before it ends. Just add a pause before the return call in the end. the end of your code could for instance look like this:
Code:
system("pause");
 return 0;
}
Function system("pause") (C++) causes the program to stop until a key is pressed, printing "Press any key to continue" on screen.

Your other question is about Unix. I'm sorry to ask but do you know what Unix is? It is not a programming language. It is not something you can do or practice with Windows. Unix is a computer operating system, some users say The Operating System. Linux for instance are based on Linux.

If you want to learn Unix, you'll find more information here: The UNIX System

Kari
My System SpecsSystem Spec
.


16 Dec 2010   #4

Windows 7 Ultimate (x64)
 
 

There is a way to learn something about Unix (or Linux - I have never actually understood how Linux is different, apart from being "free" and PC-oriented) without buying yourself a new computer or using virtual machines. What you can do it to install an emulation layer. A free one is called Cygwin and then there are also commercial variants, X-Win32 comes to mind. These emulation layers give you a Unix-like feeling by porting a number of common Unix utilities to Windows, including shells (bash, tsch, etc.), various "commands" (grep, gawk, etc.), and so on. For a beginner this should be sufficient. They are not however a way to turn your machine into a Unix workstation. If you want more than just a feeling, then get another hard drive and install one of the free Linux distros.
My System SpecsSystem Spec
16 Dec 2010   #5

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

Here is a screenshot of a DOS installation on Virtualbox. Just as easy on VMWare Player. Also has option for UNIX, Linux, Windows variants, etc.


Attached Images
 
My System SpecsSystem Spec
16 Dec 2010   #6
mjf

Windows 7x64 Home Premium SP1
 
 

I have Virtual box 3.2.1 and am an absolute rank amateur. But I find it slow and the window tiny - now shoot me down, I might learn something.

If someone wanted to learn linux maybe a BIOS boot to a USB flash drive or external HDD is an option. I seen lots of problems with people multibooting Ubuntu on the Windows 7 internal. I have 2 versions of linux on flash drives and DOS.
My System SpecsSystem Spec
16 Dec 2010   #7

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Tiny window? Why don't you run VirtualBox guest machine in full screen? For instance following these instructions in installing Linux to VirtualBox you can then use Windows controls to make the windows precisely as big as you wish: Linux - Install on Windows 7 Virtual Machine using VirtualBox

A dual boot Windows / Linux works also well.

Kari
My System SpecsSystem Spec
16 Dec 2010   #8
mjf

Windows 7x64 Home Premium SP1
 
 

Thanks I'll take a look at the tutorial. What about the speed issue.

I've seen numerous posts on this forum of people getting into trouble dual booting windows 7 and Ubuntu. All I'm saying is that it doesn't look like it's always plain sailing. Some of the long standing members appear to favour BIOS dual/multi booting.
My System SpecsSystem Spec
16 Dec 2010   #9

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

First, please keep in your mind this is my subjective opinion, based only on my own experience. Facts can be found on the net and in the library

I have had no speed or other problems in using different Linux distros in VirtualBox, or installing a Windows / Linux dual boot. I guess it's partly because I'll always try to do things, especially when I'm doing it first time ever, exactly as I've been told and / or how the manual or instructions say it should be done. I mean, no shortcuts or "that must not be important, I'll just ignore that" attitude. Like everything else in computing, the principle is easy: If your system is well maintained and you follow the instructions, it usually works.

If the Guest Additions are installed, RAM & Video RAM memory settings correct, there should be no speed problems. In any case you are not using a virtual machine to play GFX intensive multiplayer online games or to edit HD video.

If dual boot is more your thing, I recommend using BIOS to choose which OS to boot, if your system is up to it. If you use traditional bootloader, my recommendation is and has always been to install Windows first, and let Linux handle bootloader.

Kari
My System SpecsSystem Spec
16 Dec 2010   #10

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

This is why I prefer virtual machines whenever possible.

First, my windows 7 dual display system. Main display on the right reserved for Windows, left having Solaris Unix in full screen mode. With VirtualBox Guest Additions mouse totally integrated, moving without restrictions from one OS to next, keyboard working on any active app or window, regardless of which OS it belongs. Cross OS copy & paste and share of course working:

DOS and UNIX on Windows7-vm_fullscreen.jpg

And then even better, Solaris running on left display in so called seamless mode, i.e. desktop is integrated to Windows desktop, shared with it. For instance in this screenshot on left display there's a Windows Explorer window together with Solaris File Browser and Solaris Mozilla net browser. Solaris taskbar and Launch menu ("Start Menu") on left display, Windows Taskbar and Start menu on right display:

DOS and UNIX on Windows7-vm_seamless.jpg

I just love to use PC like this!

Kari


My System SpecsSystem Spec
Reply

 DOS and UNIX on Windows7




Thread Tools



Similar help and support threads for2: DOS and UNIX on Windows7
Thread Forum
Is there software that does the same as Unix 'touch'? Software
odbc connection win7 pro to unix Network & Sharing
Solved How to install UNIX with Win 7? Software
Linux & Unix installation! Chillout Room
Unix at 40 Chillout Room
Linux/Unix Print Server Network & Sharing
how many USER's will the Unix-World loos?? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:32 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33