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?
|
All messages in this thread [show all]
 |  | re: SLOW running dos program in XP (JB: Fri, Feb 6, 2004, 8:47 am) |
| |
| |
Return to the Windows XP Discussion Forum
|
|