Annoyances.org
Home » Windows XP Discussion Forum » Message 1076086043 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re: SLOW running dos program in XP
Friday, February 6, 2004 at 8:47 am
Windows XP Annoyances Discussion Forum
Posted by JB (5 messages posted)


I have a DOS batch file which uses a DOS for-loop to pass the names of all files *.png in a specific directory to another DOS batch file. The second DOS batch file is executed repeatedly, once for each file. It checks whether a corresponding file exists in another directory, and if so, appends a record to a data file. After the for-loop, the first DOS batch file triggers off a C++ executable which performs tests on the files listed in the data file. This batch file used to run quite quickly on other Windows operating systems, and on XP, but it got slow for no apparent reason. When it slowed, it got as far as running the C++ program, then stuck for ages when it used the data file. The first time it ran slowly, I ran virus checks, disk error checks, and disk defragmenter, and it was OK again. It got slow again, but the second time, the same treatment did not cure it. I looked at what was happening while the machine was running slow, and found that the C++ program started running while the DOS for-loop was still building its data file. The Task Manager showed that all the memory was used, and the CPU usage was about equally split between 2 processes, the one I knew about and System. I have now avoided the problem by changing the method to avoid using the DOS for-loop, but I still do not understand what could have been happening when the machine seized up, and what was the underlying difference between my machine when it ran the batch file quickly and my machine when it was slow. Could this relate to your problem?


Written in response to:
SLOW running dos program in XP (morley: Thursday, November 13, 2003 at 4:21 pm)

Responses to this message:
*re: SLOW running dos program in XP (morley: Friday, February 6, 2004 at 1:45 pm)

All messages in this thread [show all]
-SLOW running dos program in XP (morley: Thu, Nov 13, 2003, 4:21 pm)
-re: SLOW running dos program in XP (Tom Swanson: Thu, Nov 13, 2003, 6:08 pm)
-re: SLOW running dos program in XP (morley: Thu, Nov 13, 2003, 7:36 pm)
-re: SLOW running dos program in XP (Tom Swanson: Thu, Nov 13, 2003, 9:03 pm)
*re: SLOW running dos program in XP (morley: Fri, Nov 14, 2003, 6:26 am)
-re: SLOW running dos program in XP (JB: Fri, Feb 6, 2004, 8:47 am)
-re: SLOW running dos program in XP (morley: Fri, Feb 6, 2004, 1:45 pm)
-re: SLOW running dos program in XP (JB: Sat, Feb 7, 2004, 2:07 am)
-re: SLOW running dos program in XP (morley: Sun, Feb 8, 2004, 8:12 am)
-re: SLOW running dos program in XP (JB: Mon, Feb 9, 2004, 9:07 pm)
-re: SLOW running dos program in XP (morley: Tue, Feb 10, 2004, 6:56 am)
-re: SLOW running dos program in XP (JB: Tue, Feb 10, 2004, 7:26 am)
-re: SLOW running dos program in XP (morley: Wed, Feb 11, 2004, 6:44 am)
-re: SLOW running dos program in XP (JB: Thu, Feb 12, 2004, 5:45 am)
-re: SLOW running dos program in XP (morley: Fri, Feb 13, 2004, 7:42 am)
*re: SLOW running dos program in XP (Massimo: Thu, Apr 28, 2005, 4:59 pm)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright © 1995-2009 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.