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
ArpitRaj

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
Lemur

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
Kari

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
unifex

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
Lemur

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
Kari

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
Kari

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
Kari

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:

-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:

-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
Thread Forum
install UNIX with Win 7
Hi everybody, I want to install UNIX with windows 7, I want to keep wind 7, just for my work I would like to learn UNIX and work with its commands, I am beginner in Unxi, and would like to gradually work with UNIX completely. I do not know what should I do for starting? what should I install? ...
Installation & Setup
Is there software that does the same as Unix 'touch'?
I need to do what I think is a somewhat complex thing. I have a drive with almost 1500 folders in it. Some of these folders are parents and do not have files directly under them, just child folders. The child folders all have files with various dates. I need a way to do a recursive check of all...
Software
What is the Windows equivalent to the UNIX CAT command?
G'day, Can someone suggest the Windows equivalent of the following UNIX usage of CAT? In UNIX: set i = 1 cat << EOF > input.txt + var_${i} 0 byte Variable 1
General Discussion
How to install UNIX with Win 7?
I would like to know how to install UNIX with Win 7, not as dual boot but simultaneously with Win 7 (using some kind of emulators or some virtual drive... I don't know exactly). Which software to use for this purpose? Regards Arpit Raj
Software
Linux & Unix installation!
Hello, i don't no if this the right forum or not, but i wanted to ask:- 1. What is the major Difference between the two? 2. I read that Linux came from Unix, but why? is it better? or is it the developed version of Unix? & the important question:- 3. Can i install both of them while keeping...
Chillout Room
Unix at 40
The middle-aged OS is not expected to die any time soon, just slowly fade away... Unix at 40: Hanging on despite strong Linux, Windows challenges | Networking - InfoWorld
Chillout Room

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 18:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App