Post Your Computer Questions

Site Index   |  Quick Index   |  New Tips   |  MS Windows   |  MS Office   |   Newsletter   |   Q&A  |   More Tips  |    

Tips Download   |   Donations   |   Customer Support   |   Registry Tips   |   Weekend Windup |   IE 6.0   |   IE 7.0  |   Help   |   Suggestions

 Windows XP Run Commands | Computer Questions. Microsoft Access Databases | Computer Terms | New Home Material Estimating Spread Sheets!

  Windows XP Remote Desktop Setup One! | 57 Vista Run Commands | Windows XP Remote Desktop Setup Two!

  Microsoft Windows.

  Windows 95
  Windows 98
  Windows NT 4.0
  Windows 2000
  Windows ME
  Windows XP

  Windows Vista

  Microsoft Office.

  Microsoft Office 97
  Microsoft Office 2000
  Microsoft Office XP
  Microsoft Office 2003
  Microsoft Office 2007
  Open Office 

  Other Misc. Software.

  Internet Explorer 6.0
  Internet Explorer 7.0
  Outlook Express 6.0
  VNC
  Ultra VNC

  VPN

  Windows Remote Desktop

  Batch File Information

  Recommended Downloads

 


IF01976  

Q. What is the difference between COMMAND and CMD DOS Virtual Machine in Windows XP?

A. Windows XP includes TWO command-line processors, CMD.EXE and COMMAND.COM. The second one, COMMAND.COM, is a stripped-down version of the command processor from DOS. The Windows XP version of COMMAND.COM is severely restricted in its capabilities (lacks long filename support and many other features familiar from Windows 98SE), so it is all-but-unusable.

Furthermore, it turns out that there are TWO ways to run CMD.EXE in Windows XP, although this fact is not documented anywhere. CMD.EXE can be run from a shortcut (a .lnk file, which is the way that the Command Prompt window is set up "out-of-the-box" in Windows XP) or from a Program Information File (a .pif file).

I have found the .pif file method for running CMD.EXE to be superior in most respects. For one thing, the .pif file "Properties" dialog gives you control of a lot more of the "compatibility" options. More importantly, however, most of my DOS applications simply run better when CMD.EXE is invoked by a .pif file. The most visible difference is in the colors within the Command Prompt window. My favorite DOS-based source code editor, for example, displays with a hideous green background color when run under a CMD.EXE shortcut, but runs correctly (with a black background) when run under CMD.EXE invoked via a .pif file. The DOS full-screen "edit" command has similar problems with colors when run under a shortcut, but again runs correctly under a .pif file.

There are two minor annoyances, however, when running CMD.EXE from a .pif file:

1. Any switches that you specify in the "dir" command (such as "/w") are ignored.

The "dir" command uses ONLY the options you have set in the environment via the "DIRCMD" variable.

 2. If you are sitting at a command prompt, not running a command or application, and you try to terminate the window by clicking the "X" box in the upper right-hand corner of the window frame, you get a "nag" dialog. The "exit" command does work correctly, without the nag.

 

            
  NAVIGATION
 

My Newsletter

Message Boards
Post Your PC Question.
Tips Package Download
Site Index
Quick Index

 


 

 

 
 


  Site Feedback

Let me know if you need anything else.

Did this Article Give you the Information You Were Looking For?

 

YES!  NO!

  Site Main Index Pages.

  Quick Index
  Site Index
  Readers Q&A
  Tips! Tips! Tips!
  Tips With Full Graphics.
 

  Misc. Important Pages.

  Latest Virus Information.
  Mother Board Chipset Drivers
  Drivers Company Links
  Customer Support
  Hardware Company Info.
 

  Questions, Downloads, more.

  Donations
  Tips Package Download
  Registry Tips
  Weekend Windup
  Post Your PC Question.
  Your Suggestions

  IE 7.0 Install

 
Hit Counter
     


Main Site Navigation:

|Windows 7 Questions. |Vista Questions. |Windows XP Home and Pro Questions. |Internet Explorer 8.0 |Internet Explorer 7.0 |Printer Problems. |Outlook Express 6.0 |

|Windows Mail. |Moderator Tips! |Firefox |Home Networking Problems!! | Function Keys, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12 | Windows Live Essentials 2011.

 

You Can also get all these tips plus more in one Package including 100 Vista Tips!

 

Page 1

Page 2

Page 3

Page 4

Page 5

Page 6

Page 7

Page 8

 

See The 11 Tip Package That You Should Print And Keep Close To Your Computer! 

100 Vista Tips!

This One Also Comes With The Standard Tips Package!  2 Downloads!

  My Blog!

Close To 400 More XP Tips.  If you Can't Find The Answer Here just Click Here!
Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8


Newsletter Signup
   |   Search   |   Windows Versions   |   Office Versions   |  
Forum |   Readers Q&A   |   Tips In Full Graphics   |   Tips Download    

 Site Navigation:
Donations
   |   Support   |   Registry Tips   |   Weekend Windup   |   PC Questions |   IE 6.0   |   IE 7.0   |   Outlook Express 6.0   |   PC Help
Virus Info
   |   Computer Drivers   |   Hardware Info.   |  
Your Suggestions |   IE 7.0 Install  |   Database Downloads   |   Home  |  Computer Terms  

|   57 Vista Run Commands   |   Windows XP Run Commands  |   Microsoft Access Databases  |

Windows XP Remote Desktop Setup One! |New Home Material Estimating Spread Sheets! Windows XP Remote Desktop Setup Two!

All products mentioned are registered trademarks or trademarks of their respective companies.
Questions or problems regarding this web site should be directed to the
Webmaster.
Copyright 1999-2011  Internet Fixes. All rights reserved.      
Legal Disclaimer

This Site Is Part Of The Internet Fixes Network!