Setting up a Virtual PC "DOS Application"

Setting up a Virtual PC "DOS Application"

  • Comments 7

So you have a legacy DOS application that does not work under Windows, but does work under Virtual PC.  Now you have the problem that you want to set this up for users to access, without having to explain the world of virtualization to them.  Here is what you can do:

  1. Add the command to start the application to the end of AUTOEXEC.BAT

    This will cause the application to start automatically when the virtual machine is booted.
  2. Download http://www.opus.co.tt/dave/shut12.zip, extract it, copy SHUTDOWN.COM to the DOS directory, and add SHUTDOWN -S to the end of AUTOEXEC.BAT.

    Now the virtual machine will turn off automatically when the DOS application is exited.
  3. Under Virtual PC, open the virtual machine settings and check Hide virtual machine menu and Hide virtual machine status bar under the Display settings:

     

    This will make your virtual machine look like this:


  4. Now you need to stop the virtual machine from prompting when the user closes the window, or exits the DOS Application.  If you are not using undo disks you can open the virtual machine settings, go to Close and select Automatically close without a message and: and then select Turn Off.  If you are using undo disks, you need to change the close option to Turn off and delete changes.

  5. Create a shortcut on the users desktop / start menu that starts:

    "C:\Program Files\Microsoft Virtual PC\Virtual PC.exe" -pc "DOS" -launch -singlepc

    Where "DOS" is the name of your virtual machine.  This will start the virtual machine without exposing the Virtual PC Console user interface.

  6. Configure the Virtual PC security options (either through the user interface, or through the registry) in order to stop the end user from being able to access the virtual machine settings, and other aspects of the Virtual PC.

With all of this done, the user will never need to know that they are using a virtual machine to run their DOS application.  If you want to be really through you can go into the BIOS settings of the virtual machine (hit the DEL key during the early boot of the virtual machine) and go to Advanced and select Boot Settings Configuration and then enable Quite Boot.  This will stop the virtual machine from display any of the BIOS initialization text.

Cheers,
Ben

Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post
  • Very cool! The MS-DOS Editor gave me a QBASIC flashback so I may set one up just for when I get the urge to write some code. Excuse my ignorance, but does VPC have anything to handle MS-DOS eating 100% CPU when it's waiting at the command prompt?

  • We have an IDLE utility which shipped with Virtual PC 2004, however this only helps when you are at the command prompt and not when you are running an application.

    Cheers,

    Ben

  • Even for normal DOS VM usage both my dad and I find a program like the one you linked to (I found one called POWEROFF.EXE) useful to quickly shutdown our VMs using the command line.

    TimP: Open the Virtual Machine Additions CD and add IDLE.COM to your CONFIG.SYS.  The other tools are useful too (folder sharing is awesome :).

  • Hello!

    Is it possible to change the title (remove the

    text "Microsoft Virtual PC 2007") of the VM window?

    Thanks, Roman

  • Hi,

    I did something similar with a windows 95 application that doesn't work on XP.

    1) I got two freewares one to compile a batch file (http://www.abyssmedia.com/quickbfc/), the other one to swich the pc off automatically (http://www.ampsoft.net/utilities/WinOFF.php)

    2) I created the following batch file with notepad (test.bat)

    Start /maximized /wait notepad.exe

    "c:\program files\amp winoff\winoff.exe" -shutdown

    compliled it with quickbfc, save the exe in windows. (ie c:\windows\something.exe)

    3) I changed the line shell=explorer.exe in system.ini to shell=something.exe

    that's it.

    Valery.

  • First things first, how can I supress the Virtual PC splash screen from appearing when I strat up VPC?.. how can I supress "Microsoft Virtual PC 2007" from appearing in the window?.. How can I change the VPC default icon to an icon of my choice?  

  • A simple question, how to run a DOS virtual machine under "Windows Virtual PC" under Windows 7 64-bit?

    I only find posts about VPC 2004/2007.

Page 1 of 1 (7 items)