There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
Would a DOS program work in XP


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
leachim's Avatar
Senior Member with 575 posts.
 
Join Date: Apr 2004
23-Dec-2006, 04:42 AM #1
Would a DOS program work in XP
Hi

I have a DOS program (caravan holiday booking facility) that was written for 98.

Considering getting a new computer with XP - would this program still work in DOS mode with XP ?

I see there is PIF(s) and BAT(s) file involved, along with a directory of info.

If I copied these files over keeping them in their respect directories, would this work ?

It is also used to using the A drive to backup info - could it be altered to use the CD now ?

Thanks
saikee's Avatar
Distinguished Member with 2,513 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
23-Dec-2006, 09:04 AM #2
Why not? It is a 8086 compatible Intel CPU, right?

Proprietory software accessing other parts of the PC may be in trouble but any Dos program, using just the screen, hard drives, floppies and keyboard, compiled into .exe should run straight away. Mine does any way and I have plenty of them.

If you have a floppy drive it is still a A: in XP's "command prompt". XP no longer supports DOS and the command prompt is just a compatibility box to run software in terminal mode.

There is a saying of "Windows may die but not Dos".

In fact if you use Linux it has a boot loader that allow you to install all MS systems, from Dos to Vista, into the same PC and boot any one of them as you wish.
__________________
A newbie entered Linux wonderland in Jun 2004, now a converted Linux user - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & & A "Howto" to install and boot 145 systems
Just booting tips A collection of booting tips
Judge told Linux "You are charged of murdering Windoze by stabbing its heart with a weapon, what was it? Linux replied "A Live CD"
JohnWill's Avatar
Computer Specs
Moderator with 76,999 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
23-Dec-2006, 10:55 AM #3
It will probably work, and there are compatibility modes that may help if you experience issues.
londonish's Avatar
Junior Member with 14 posts.
 
Join Date: Dec 2006
Experience: Intermediate
26-Dec-2006, 12:22 PM #4
I've imported old dos programs i've written into XP, and they've worked fine.

http://dosbox.sourceforge.net is very helpful for more complicated programs.
JohnWill's Avatar
Computer Specs
Moderator with 76,999 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
26-Dec-2006, 04:13 PM #5
Not all DOS applications will work, even with a "sandbox" like DOSBOX. OTOH, many will, and the only real way to know is to try them.
JStergis's Avatar
Computer Specs
Distinguished Member with 3,339 posts.
 
Join Date: Jul 2005
Location: Massachusetts
Experience: what we call our mistakes
27-Dec-2006, 03:28 PM #6
You could always install a copy of DOS or 98 into VirtualPC or VMWare Player. Only disadvantage to that is it's difficult to export or print any file since it is basically another machine operating inside another.

Just a suggestion and not a very good one-just one possibility
__________________

Joe

"America believes in education: the average professor earns more money in a year than a professional athlete earns in a whole week."
- Evan Esar

JohnWill's Avatar
Computer Specs
Moderator with 76,999 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
27-Dec-2006, 05:52 PM #7
Actually, many of the applications that actually touch hardware resources will fail in VPC or VMWARE. Like I said, it's really useful to know exactly what application we're talking about.
DOStradamus's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Remember paper tape?
05-Jan-2007, 02:02 PM #8
Only one real "gotcha"....
0. Games are not considered applications (IMHO, if need be)
1. There are two database packages out there, FoxPro 2.6 and "really old versions" of DataFlex (specifically the one used for the DOS version of the "David" claims management app), that are unreliable on anything beyond DOS6.22.

MS goes to great pains to keep a fully functional MS-DOS subsystem ("DOS box") alive in even the latest Windows versions. Programs written for DOS 1.x (that use FCB filesystem functions) will need to be located on a FAT16 (< 2Gb) disk partition, if they do any kind of file access.

You said it was written for "98"... you should have *no* problems.

-NK
DOStradamus's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Remember paper tape?
05-Jan-2007, 02:13 PM #9
John -
Run an _old_ DOS comm program (Procomm, Comit, PC-Tallk.exe) and marvel over the fact that it *works*, knowing it "thinks" it is still writing directly to the UART control/config registers! Apparently, the NT5 DOS subsystem scans the app at load time for IN and OUT opcodes, and subsequently intercepts them. Note that you can't go into DEBUG, and do "O 3fc 3", etc., to toggle DTR/RTS....

-NK
JohnWill's Avatar
Computer Specs
Moderator with 76,999 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
05-Jan-2007, 04:30 PM #10
Actually, programs that used the FCB file access are some that are likely to fail, it's the ones that used the newer file handle functions that work as a rule. Since you could do tricky things with the FCB that you can't do with the emulated MS-DOS calls, many of those programs fail. SuperSort and DataStar come to mine.

As far as emulated hardware, parallel and serial ports are emulated pretty well, but many other direct hardware access functions fail.
__________________
Microsoft MVP - User Desktop Experience

If you think experts are expensive, wait until you see what amateurs cost you!

Help me out with some details here, I'm brilliant, not clairvoyant!
DOStradamus's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: Jan 2007
Experience: Remember paper tape?
05-Jan-2007, 10:46 PM #11
Win 03 still supports FCB access on FAT16 and floppies. Just checked it so I wouldn't be reminding myself as to what Desinex tastes like after it's been applied earlier in the day....

This place is gonna be fun....

-NK
JohnWill's Avatar
Computer Specs
Moderator with 76,999 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
06-Jan-2007, 10:20 AM #12
FCB access is supported, but all the tricks you can do with FCB's are not. Opening two files for write access, for instance, is what I believe SuperSort does, and it fails under the DOS emulation in 2K/XP. Been there, done that, burned the T-Shirt.
Praetorian01's Avatar
Computer Specs
Junior Member with 21 posts.
 
Join Date: Dec 2006
Experience: Intermediate
08-Jan-2007, 12:06 PM #13
Hello there!

You could enlighten us more so we can help you better. Please read this.

Quote:
Originally Posted by leachim
I have a DOS program (caravan holiday booking facility) that was written for 98.
  • What Version is this "DOS Progam"?
  • What Version of Windows 98 are you using? (98 or 98 SE - Second Edition)
  • Where does it Run/Operate? Is it in Windows 98 or in Plain DOS (exited Win98) or can it run in MS-DOS Prompt Window under Win98?
  • Does it come with an Installer/Setup/Loader Program that you must run and complete OR you just copy the entire folder and run the main program/executable?
Answer ALL these questions & Please be more specific & elaborate further.

Quote:
Originally Posted by leachim
[I'm] Considering getting a new computer with XP - would this program still work in DOS mode with XP?
Quote:
Originally Posted by JohnWill
It will probably work, and there are compatibility modes that may help if you experience issues.
Look for a friend/colleague who has a PC with WinXP installed. Install/copy your program in a folder in his/her Hard Disk Drive (HDD) and do the following:

It could work under "Windows Compatibility Mode" :
  1. Right-click the main program/executable;
  2. In the Context Menu, click Properties;
  3. Click Compatibility tab;
  4. In the Compatibility group box, click the Run this program in compatibility mode for: check box;
  5. In the drop down list, select Windows 98/Windows ME item;
  6. In the Display Settings group box, click the check box that will work with your Program (use Trial & Error to find out);
  7. Run/execute your program (Click/Double-click the main program/executable).
  8. [Optional]: Experiment among the different items in the drop down list should the previous one/s do not work.

Here is how the File Properties Window look like:



Hot Tip: To learn more, click the Learn more about: Program Compatibility link of the File Properties Window in your PC, not the image here (of course ).

Quote:
Originally Posted by leachim
I see there is PIF(s) and BAT(s) file involved, along with a directory of info. If I copied these files over keeping them in their respect[ive] directories, would this work?
Bingo! The fact that you've said this (quote above) most probably means that your program does not have an Installer/Setup/Loader Program that "installs" & "configures" it into DOS/Win98. Probably you just copy the entire folder and run the main program/executable. But try to remember how you placed the program into the old PC. If the foppy disks or CDs are still available, examine the executables (.exe,.com,.bat,etc.) for something like setup.xxx, install.xxx, start.xxx, load.xxx (uncommon), etc.

Hot Tip: Better yet, you can eliminate the guess work by reading the documentation in the folder/directory where the program is located. They are mostly Text files (.txt) or Rich Text Format documents (.rtf) or could be Help files (.chm) (readme.xxx, release.xxx, readfirst.xxx, install.xxx, notes.xxx, help.xxx, etc.). Open Text files with NotePad or WordPad. Open Rich Text Format documents with WordPad. Help files are read by double-clicking/running them because the hh.exe program do not load by itself in WinXP.

Quote:
Originally Posted by leachim
It is also used to using the A drive to backup info
If there is an option IN the program OR there is a Configuration file that the program refers to, then you can modify it to save its data/output elsewhere aside from A: Drive (Floppy).

Quote:
Originally Posted by leachim
- could it be altered to use the CD now?
Since your program is an old one from the DOS/Win98 era, I would assume that it has no CD/DVD recording capabilities UNLESS it is Explicity Stated or there is an option/menu/item for it.

Hot Tip: What you can do is find a way for the program to save its data/output into a Folder and simply use a CD/DVD Burning Software to record to CD/DVD for Archival/Back Up purposes. If you're in Windows XP, I would suggest using a USB Flash Drive (UFD) if what you actually want is to copy/transfer files between PCs.

Hot Tip: If none of the above seem to or will ever work, you'll just have to look for an updated version or replacement of your program that works seemlessly in WinXP and the upcoming one (WinVista).

I hope this helps.

Mark


P.S.:
If you do not elaborate well on your concern/problem, there is a high probalility that people here will just post a Solution or even a Remote Idea related (but not helpful) to your concern/problem. Most probably, they/we will just use the Quick Reply feature of the Forum to write down whatever comes across our minds at that moment! We can easily solve your problem if we are with you in front of your PC. So the best this that you can do for us at this point is to FULLY DESCRIBE your situation. This should save time for all of us instead of needlessly identifying the problem and comprehending your condition. Ok?
Attached Thumbnails
would-dos-program-work-xp-file-propertes-window.jpg  

Last edited by Praetorian01 : 09-Jan-2007 04:38 AM.
leachim's Avatar
Senior Member with 575 posts.
 
Join Date: Apr 2004
08-Jan-2007, 12:41 PM #14
You have been very helpful

Thankyou - will look into it

Mike
Praetorian01's Avatar
Computer Specs
Junior Member with 21 posts.
 
Join Date: Dec 2006
Experience: Intermediate
08-Jan-2007, 01:50 PM #15
Hot Tip:
Try Submitting/Uploading Screenshots like the one in this thread. It will tremendously improve your chances of Solving your Problem as most people here have superior Visual processing abilities.

Also, Text Output/Process Logs or Pictures eliminate ambiguities and the need for Twenty Questions!

Good luck once more.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:35 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.