troubleshooting Question

Dosbox dos script

Avatar of Bryan Butler
Bryan ButlerFlag for United States of America asked on
Microsoft DOSScripting LanguagesWindows Batch
8 Comments1 Solution1453 ViewsLast Modified:
I’m working on a dos script that will loop through the files in a given folder and run a command on each file in the folder.  It also needs to copy the output of the command, which is a file named dump-hac.txt, to the original file’s name. Also MUST BE FULL SCREEN DOS or DOSBox dos.

Pseudo code:
For %a in (“*.hac”) do
   dump-hac.exe %~na
   mv dump-hac.txt %~na.txt

This is the base code of a script that runs on a newer dos version, but Dosbox ( doesn’t have “for” or other abilities.

The main reason for all this is that this program ONLY runs in FULL SCREEN DOS mode.  I need to automate running it in another script and it seems impossible with the new Vista/Win7 dos, and it’s looking the same in XP dos.  So I found it does run in DOSBox and now I’m trying to figure out the dosbox dos commands to do it.  Help?  TIA.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros