Originally published at migrationparity.com.
Spend a week on the user forum of a DOS emulator and a pattern shows up fast. An
accounting package, heavily customized for inventory, that won't start from the
shared drive. A dBase application that hangs every time it rebuilds its indexes.
A FoxPro program, in daily use for twenty-five years, that says it deleted records
and didn't. And under almost every thread, in one form or another, the same
sentence: it worked fine on the old computer.
It did. Then the old computer died, usually a Windows XP or Windows 7 box that had
been humming under a desk since the Bush administration, and the new one came with
Windows 11. Nothing in the program changed. Everything around it did.
I fix these for a living, mostly by email, and the causes are far less mysterious
than the error messages make them look.
The new PC can't run it at all, and that part is the easy one
Windows 11 exists only in a 64-bit edition, and 64-bit Windows dropped the layer
that let DOS programs run directly. That was NTVDM, and it's simply gone. So the
very first symptom is a program that refuses to start, or a message that it isn't
compatible with this version of Windows.
The answer is an emulator, a small program that pretends to be a DOS computer
inside a window. For games people use DOSBox. For business software the better
fit is usually vDos, which was built for exactly this crowd: it handles long
sessions, keyboard-heavy data entry and, crucially, Windows printing. Stock DOSBox
doesn't print at all.
Getting the program to start in an emulator typically takes an afternoon. If it
stopped there, nobody would write to me.
Printing breaks because the printer speaks another language
A DOS program never talked to Windows about printing. It wrote its pages straight
to the parallel port, LPT1, in the native language of the printer it was set up
for in 1994. That's usually Epson's dot-matrix codes or HP's PCL for LaserJets.
The program assumed a printer that understood those codes sitting at the end of a
cable.
Your new printer is almost certainly a USB or Wi-Fi model that understands neither.
Most modern inkjets only accept pages already drawn by the Windows driver. Send
them raw LaserJet codes and you get a blank page, a page of gibberish, or nothing
at all. That last one is the most confusing, because the program reports that
it printed successfully.
The fix is a translation step between the program and the printer, so the old
codes get turned into something Windows can print. Emulators like vDos handle the
plain-text cases well. The hard cases are programs that send real PCL: forms,
fonts, boxes, the stuff invoices and policy declarations are made of. Those need
the whole PCL stream interpreted and redrawn, not just passed along. That
translation step is doable, and it's the part people burn weeks on trying random
printer drivers, because no Windows driver setting can fix it.
Reports fail with an error that points the wrong way
This is the one that sent my most recent client looking for help. The program
itself ran fine in the emulator. Data entry worked, screens worked. But every
report ended in a red box saying a temporary file couldn't be found or created.
Many DOS business applications don't produce reports themselves. They hand the
job to a separate report program and wait for its output. Starting that second
program relies on memory-management services that the old Windows quietly
provided and an emulator may not. When that handoff fails, it fails silently.
The main program only sees that the output file never appeared, so it reports a
missing temporary file.
People spend days on folder permissions and temp-directory settings because
that's what the message says. The message is wrong. In that case it took a
deliberately planted fake report program to prove the real one was never being
started at all. The cure was small once the cause was known. Finding the cause was
the job.
Folders and drive letters that only existed on the old machine
A 1990s program usually expects its world at fixed addresses: itself in C:\APP,
data on drive F: on the office server, scratch files in a particular temp folder,
and environment settings loaded by the old machine's startup files at boot. On
the new PC none of that exists unless someone recreates it. Copy the program into
Program Files or a OneDrive-synced folder and Windows may also block it from
writing its own temporary files. Then you get exactly the "cannot create file"
errors that look like corruption and aren't.
When the old machine is still alive, or its hard drive is, its configuration files
are worth gold. Settings such as FILES=151 in an old CONFIG.NT look like
trivia. They tell you how many files the program expects to hold open at once, and
an emulator left on its default will quietly run out.
What not to do while you're stuck
Don't open the data files in Excel to "have a look." The tables are DBF files.
Excel will open them and save them back in a form the old program no longer
reads. It also strips the separate memo and index files that sit next to them. If
you want to see what's inside, a read-only viewer is safer. Our
DBF Analyzer runs entirely in your browser, and nothing
gets uploaded.
Don't plan around keeping a Windows 10 machine either. Windows 10 support ended
in October 2025, and an unpatched PC holding thirty years of customer records is
its own kind of emergency. Keep the old machine, though, even dead. Its disk
holds the configuration that makes the next steps quick.
Fix it or replace it?
Not every old system deserves to be kept, and not every one needs a rewrite. If
the program still does the business's job and only the environment has changed,
fixing the environment is usually a matter of days and costs a small fraction of
a replacement. The program then keeps running while you decide about the future
calmly, not in a panic. I wrote up the full decision in
rewrite vs convert vs wrap, and one such
rescue from start to finish in the
case study of a 1997 insurance system.
That client's first email was four lines long, and the most useful one was the
error message, copied exactly.
If your DOS-era program fights its new computer, send the exact error message and
a screenshot through the contact page. Diagnosis starts by email, the
price is fixed before any work begins, and if it can't be fixed you don't pay.
More on how these engagements run on the
Clipper / xBase service page.
Top comments (0)